Devices, Methods, and Graphical User Interfaces for Document Manipulation

ABSTRACT

An electronic device displays at least a portion of an electronic document with a predefined page layout at a first magnification level on a display; detects a first input indicating a first insertion point in the document, where the first insertion point is proximate to a first portion of text in the document; and in response to detecting the first input: selects a second magnification level different from the first magnification level, where the second magnification level is selected so as to display the first portion of text at a target text display size, and, while maintaining the predefined page layout of the document, displays, at the second magnification level, a portion of the document that includes the first portion of text.

RELATED APPLICATIONS

This application claims priority to U.S. Provisional Application Ser.No. 61/491,323, filed May 31, 2011, entitled “Devices, Methods, andGraphical User Interfaces for Document Manipulation,” which isincorporated herein by reference in its entirety.

This application is a related: (1) U.S. application Ser. No. ______,filed ______, entitled “Devices, Methods, and Graphical User Interfacesfor Document Manipulation,” (Attorney Docket No.P11203US1/63266-5382US); (2) U.S. application Ser. No. ______, filed______, entitled “Devices, Methods, and Graphical User Interfaces forDocument Manipulation,” (Attorney Docket No. P11203US2/63266-5409US);(3) U.S. application Ser. No. ______, filed ______, entitled “Devices,Methods, and Graphical User Interfaces for Document Manipulation,”(Attorney Docket No. P11203US4/63266-5411US); and (4) U.S. applicationSer. No. ______, filed ______, entitled “Devices, Methods, and GraphicalUser Interfaces for Document Manipulation,” (Attorney Docket No.P11203US5/63266-5412US), which are incorporated herein by reference intheir entireties.

TECHNICAL FIELD

This relates generally to electronic devices with touch-sensitivesurfaces, including but not limited to electronic devices withtouch-sensitive surfaces that display electronic documents.

BACKGROUND

The use of touch-sensitive surfaces as input devices for computers andother electronic computing devices has increased significantly in recentyears. Exemplary touch-sensitive surfaces include touch pads and touchscreen displays. Such surfaces are widely used to manipulate electronicdocuments on a display.

Exemplary manipulations include navigating and editing an electronicdocument. A user may need to perform such manipulations in anyapplication that includes electronic document viewing and editingcapabilities (e.g., a drawing application, a presentation application(e.g., Keynote from Apple Inc. of Cupertino, Calif.), a word processingapplication (e.g., Pages from Apple Inc. of Cupertino, Calif.), awebsite creation application (e.g., iWeb from Apple Inc. of Cupertino,Calif.), or a spreadsheet application (e.g., Numbers from Apple Inc. ofCupertino, Calif.)).

But existing methods for navigating and editing documents are cumbersomeand inefficient, especially on devices with a small form factor, such ashandheld or pocket-sized devices. In addition, existing methods takelonger than necessary, thereby wasting energy. This latter considerationis particularly important in battery-operated devices.

SUMMARY

Accordingly, there is a need for electronic devices with faster, moreefficient methods and interfaces for navigating and editing anelectronic document. Such methods and interfaces may complement orreplace conventional methods for navigating and editing an electronicdocument. Such methods and interfaces reduce the cognitive burden on auser and produce a more efficient human-machine interface. Forbattery-operated devices, such methods and interfaces conserve power andincrease the time between battery charges.

The above deficiencies and other problems associated with userinterfaces for electronic devices with touch-sensitive surfaces arereduced or eliminated by the disclosed devices. In some embodiments, thedevice is a desktop computer. In some embodiments, the device isportable (e.g., a notebook computer, tablet computer, or handhelddevice). In some embodiments, the device has a touchpad. In someembodiments, the device has a touch-sensitive display (also known as a“touch screen” or “touch screen display”). In some embodiments, thedevice has a graphical user interface (GUI), one or more processors,memory and one or more modules, programs or sets of instructions storedin the memory for performing multiple functions. In some embodiments,the user interacts with the GUI primarily through finger contacts andgestures on the touch-sensitive surface. In some embodiments, thefunctions may include image editing, drawing, presenting, wordprocessing, website creating, disk authoring, spreadsheet making, gameplaying, telephoning, video conferencing, e-mailing, instant messaging,workout support, digital photographing, digital videoing, web browsing,digital music playing, and/or digital video playing. Executableinstructions for performing these functions may be included in anon-transitory computer readable storage medium or other computerprogram product configured for execution by one or more processors.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying atleast a portion of an electronic document with a predefined page layoutat a first magnification level on the display; detecting a first inputindicating a first insertion point in the document, where the firstinsertion point is proximate to a first portion of text in the document;and in response to detecting the first input: selecting a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display the firstportion of text at a target text display size; and while maintaining thepredefined page layout of the document, displaying, at the secondmagnification level, a portion of the document that includes the firstportion of text.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying at least a portion of an electronicdocument with a predefined page layout at a first magnification level onthe display; detecting a first input indicating a first insertion pointin the document, where the first insertion point is proximate to a firstportion of text in the document; and in response to detecting the firstinput: selecting a second magnification level different from the firstmagnification level, where the second magnification level is selected soas to display the first portion of text at a target text display size;and while maintaining the predefined page layout of the document,displaying, at the second magnification level, a portion of the documentthat includes the first portion of text.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display at least a portionof an electronic document with a predefined page layout at a firstmagnification level on the display; detect a first input indicating afirst insertion point in the document, where the first insertion pointis proximate to a first portion of text in the document; and in responseto detecting the first input: select a second magnification leveldifferent from the first magnification level, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and while maintaining the predefinedpage layout of the document, display, at the second magnification level,a portion of the document that includes the first portion of text.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes at least aportion of an electronic document with a predefined page layout at afirst magnification level. A first input indicating a first insertionpoint in the document is detected, where the first insertion point isproximate to a first portion of text in the document. In response todetection of the first input: a second magnification level differentfrom the first magnification level is selected, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and while maintaining the predefinedpage layout of the document, a portion of the document that includes thefirst portion of text is displayed at the second magnification level.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying at least a portion of an electronicdocument with a predefined page layout at a first magnification level onthe display; means for detecting a first input indicating a firstinsertion point in the document, where the first insertion point isproximate to a first portion of text in the document; and in response todetecting the first input: means for selecting a second magnificationlevel different from the first magnification level, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and means for, while maintaining thepredefined page layout of the document, displaying, at the secondmagnification level, a portion of the document that includes the firstportion of text.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means fordisplaying at least a portion of an electronic document with apredefined page layout at a first magnification level on the display;means for detecting a first input indicating a first insertion point inthe document, where the first insertion point is proximate to a firstportion of text in the document; and in response to detecting the firstinput: means for selecting a second magnification level different fromthe first magnification level, where the second magnification level isselected so as to display the first portion of text at a target textdisplay size; and means for, while maintaining the predefined pagelayout of the document, displaying, at the second magnification level, aportion of the document that includes the first portion of text.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying atleast a portion of an electronic document at a first magnification levelon the display; detecting a first input indicating a first insertionpoint in the document, where the first insertion point is proximate to afirst portion of text in the document; in response to detecting thefirst input: selecting a second magnification level different from thefirst magnification level, where the second magnification level isselected so as to display the first portion of text at a default targettext display size; and displaying a portion of the document at thesecond magnification level; detecting a second input corresponding to arequest to display a portion of the document at a third magnificationlevel different from the second magnification level; in response todetecting the second input: displaying the portion of the document atthe third magnification level; and storing a user-adjusted target textdisplay size corresponding to a text display size of the first portionof text at the third magnification level, where the user-adjusted targettext display size is different from the default target text displaysize; and after storing the user-adjusted target text display size:detecting a third input indicating a second insertion point in thedocument, where the second insertion point is proximate to a secondportion of text in the document; and in response to detecting the thirdinput, displaying the document at a respective magnification level suchthat the second portion of text is displayed at the user-adjusted targettext display size.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying at least a portion of an electronicdocument at a first magnification level on the display; detecting afirst input indicating a first insertion point in the document, wherethe first insertion point is proximate to a first portion of text in thedocument; in response to detecting the first input: selecting a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display the firstportion of text at a default target text display size; and displaying aportion of the document at the second magnification level; detecting asecond input corresponding to a request to display a portion of thedocument at a third magnification level different from the secondmagnification level; in response to detecting the second input:displaying the portion of the document at the third magnification level;and storing a user-adjusted target text display size corresponding to atext display size of the first portion of text at the thirdmagnification level, where the user-adjusted target text display size isdifferent from the default target text display size; and after storingthe user-adjusted target text display size: detecting a third inputindicating a second insertion point in the document, where the secondinsertion point is proximate to a second portion of text in thedocument; and in response to detecting the third input, displaying thedocument at a respective magnification level such that the secondportion of text is displayed at the user-adjusted target text displaysize.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display at least a portionof an electronic document at a first magnification level on the display;detect a first input indicating a first insertion point in the document,where the first insertion point is proximate to a first portion of textin the document; in response to detecting the first input: select asecond magnification level different from the first magnification level,where the second magnification level is selected so as to display thefirst portion of text at a default target text display size; and displaya portion of the document at the second magnification level; detect asecond input corresponding to a request to display a portion of thedocument at a third magnification level different from the secondmagnification level; in response to detecting the second input: displaythe portion of the document at the third magnification level; and storea user-adjusted target text display size corresponding to a text displaysize of the first portion of text at the third magnification level,where the user-adjusted target text display size is different from thedefault target text display size; and after storing the user-adjustedtarget text display size: detect a third input indicating a secondinsertion point in the document, where the second insertion point isproximate to a second portion of text in the document; and in responseto detecting the third input, display the document at a respectivemagnification level such that the second portion of text is displayed atthe user-adjusted target text display size.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes at least aportion of an electronic document at a first magnification level. Afirst input indicating a first insertion point in the document isdetected, where the first insertion point is proximate to a firstportion of text in the document. In response to detecting the firstinput: a second magnification level different from the firstmagnification level is selected, where the second magnification level isselected so as to display the first portion of text at a default targettext display size; and a portion of the document is displayed at thesecond magnification level. A second input corresponding to a request todisplay a portion of the document at a third magnification leveldifferent from the second magnification level is detected. In responseto detecting the second input: the portion of the document is displayedat the third magnification level; and a user-adjusted target textdisplay size corresponding to a text display size of the first portionof text at the third magnification level is stored, where theuser-adjusted target text display size is different from the defaulttarget text display size. After storing the user-adjusted target textdisplay size: a third input indicating a second insertion point in thedocument is detected, where the second insertion point is proximate to asecond portion of text in the document; and in response to detecting thethird input, the document is displayed at a respective magnificationlevel such that the second portion of text is displayed at theuser-adjusted target text display size.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying at least a portion of an electronicdocument at a first magnification level on the display; means fordetecting a first input indicating a first insertion point in thedocument, where the first insertion point is proximate to a firstportion of text in the document; in response to detecting the firstinput: means for selecting a second magnification level different fromthe first magnification level, where the second magnification level isselected so as to display the first portion of text at a default targettext display size; and means for displaying a portion of the document atthe second magnification level; means for detecting a second inputcorresponding to a request to display a portion of the document at athird magnification level different from the second magnification level;in response to detecting the second input: means for displaying theportion of the document at the third magnification level; and means forstoring a user-adjusted target text display size corresponding to a textdisplay size of the first portion of text at the third magnificationlevel, where the user-adjusted target text display size is differentfrom the default target text display size; and after storing theuser-adjusted target text display size: means for detecting a thirdinput indicating a second insertion point in the document, where thesecond insertion point is proximate to a second portion of text in thedocument; and means for, in response to detecting the third input,displaying the document at a respective magnification level such thatthe second portion of text is displayed at the user-adjusted target textdisplay size.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means for meansfor displaying at least a portion of an electronic document at a firstmagnification level on the display; means for detecting a first inputindicating a first insertion point in the document, where the firstinsertion point is proximate to a first portion of text in the document;in response to detecting the first input: means for selecting a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display the firstportion of text at a default target text display size; and means fordisplaying a portion of the document at the second magnification level;means for detecting a second input corresponding to a request to displaya portion of the document at a third magnification level different fromthe second magnification level; in response to detecting the secondinput: means for displaying the portion of the document at the thirdmagnification level; and means for storing a user-adjusted target textdisplay size corresponding to a text display size of the first portionof text at the third magnification level, where the user-adjusted targettext display size is different from the default target text displaysize; and after storing the user-adjusted target text display size:means for detecting a third input indicating a second insertion point inthe document, where the second insertion point is proximate to a secondportion of text in the document; and means for, in response to detectingthe third input, displaying the document at a respective magnificationlevel such that the second portion of text is displayed at theuser-adjusted target text display size.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying atleast a portion of an electronic document at a first magnification levelon the display; detecting a first input indicating a first insertionpoint in the document, where the first insertion point is proximate to afirst portion of text in the document, the first portion of text havinga first font size; in response to detecting the first input: selecting asecond magnification level different from the first magnification level,where the second magnification level is selected so as to display thefirst portion of text at a target text display size; and displaying aportion of the document at the second magnification level; whiledisplaying the portion of the document at the second magnificationlevel, detecting a second input indicating a second insertion point inthe document, where the second insertion point is proximate to a secondportion of text in the document, the second portion of text having asecond font size different from the first font size; and in response todetecting the second input: selecting a third magnification leveldifferent from the second magnification level, where the thirdmagnification level is selected so as to display the second portion oftext at the target text display size; and displaying a portion of thedocument at the third magnification level.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying at least a portion of an electronicdocument at a first magnification level on the display; detecting afirst input indicating a first insertion point in the document, wherethe first insertion point is proximate to a first portion of text in thedocument, the first portion of text having a first font size; inresponse to detecting the first input: selecting a second magnificationlevel different from the first magnification level, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and displaying a portion of thedocument at the second magnification level; while displaying the portionof the document at the second magnification level, detecting a secondinput indicating a second insertion point in the document, where thesecond insertion point is proximate to a second portion of text in thedocument, the second portion of text having a second font size differentfrom the first font size; and in response to detecting the second input:selecting a third magnification level different from the secondmagnification level, where the third magnification level is selected soas to display the second portion of text at the target text displaysize; and displaying a portion of the document at the thirdmagnification level.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display at least a portionof an electronic document at a first magnification level on the display;detect a first input indicating a first insertion point in the document,where the first insertion point is proximate to a first portion of textin the document, the first portion of text having a first font size; inresponse to detecting the first input: select a second magnificationlevel different from the first magnification level, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and display a portion of thedocument at the second magnification level; while displaying the portionof the document at the second magnification level, detect a second inputindicating a second insertion point in the document, where the secondinsertion point is proximate to a second portion of text in thedocument, the second portion of text having a second font size differentfrom the first font size; and in response to detecting the second input:select a third magnification level different from the secondmagnification level, where the third magnification level is selected soas to display the second portion of text at the target text displaysize; and display a portion of the document at the third magnificationlevel.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes at least aportion of an electronic document at a first magnification level. Afirst input indicating a first insertion point in the document isdetected, where the first insertion point is proximate to a firstportion of text in the document, the first portion of text having afirst font size; in response to detecting the first input: a secondmagnification level different from the first magnification levelsselected, where the second magnification level is selected so as todisplay the first portion of text at a target text display size; and aportion of the document is displayed at the second magnification level;while displaying the portion of the document at the second magnificationlevel, a second input indicating a second insertion point in thedocument is detected, where the second insertion point is proximate to asecond portion of text in the document, the second portion of texthaving a second font size different from the first font size; and inresponse to detecting the second input: a third magnification leveldifferent from the second magnification level is selected, where thethird magnification level is selected so as to display the secondportion of text at the target text display size; and a portion of thedocument is displayed at the third magnification level.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying at least a portion of an electronicdocument at a first magnification level on the display; means fordetecting a first input indicating a first insertion point in thedocument, where the first insertion point is proximate to a firstportion of text in the document, the first portion of text having afirst font size; in response to detecting the first input: means forselecting a second magnification level different from the firstmagnification level, where the second magnification level is selected soas to display the first portion of text at a target text display size;and means for displaying a portion of the document at the secondmagnification level; means for, while displaying the portion of thedocument at the second magnification level, detecting a second inputindicating a second insertion point in the document, where the secondinsertion point is proximate to a second portion of text in thedocument, the second portion of text having a second font size differentfrom the first font size; and in response to detecting the second input:means for selecting a third magnification level different from thesecond magnification level, where the third magnification level isselected so as to display the second portion of text at the target textdisplay size; and means for displaying a portion of the document at thethird magnification level.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means fordisplaying at least a portion of an electronic document at a firstmagnification level on the display; means for detecting a first inputindicating a first insertion point in the document, where the firstinsertion point is proximate to a first portion of text in the document,the first portion of text having a first font size; in response todetecting the first input: means for selecting a second magnificationlevel different from the first magnification level, where the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and means for displaying a portionof the document at the second magnification level; means for, whiledisplaying the portion of the document at the second magnificationlevel, detecting a second input indicating a second insertion point inthe document, where the second insertion point is proximate to a secondportion of text in the document, the second portion of text having asecond font size different from the first font size; and in response todetecting the second input: means for selecting a third magnificationlevel different from the second magnification level, where the thirdmagnification level is selected so as to display the second portion oftext at the target text display size; and means for displaying a portionof the document at the third magnification level.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying aportion of an electronic document on the display; detecting a contentselection input; and in response to detecting the content selectioninput: identifying a selected portion of the document in accordance withthe content selection input; and in accordance with a determination thatthe selected portion of the document includes content that is outside ofa currently displayed portion of the document, adjusting display of thedocument so that the entire selected portion of the document isdisplayed on the display.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying a portion of an electronic document on thedisplay; detecting a content selection input; and in response todetecting the content selection input: identifying a selected portion ofthe document in accordance with the content selection input; and inaccordance with a determination that the selected portion of thedocument includes content that is outside of a currently displayedportion of the document, adjusting display of the document so that theentire selected portion of the document is displayed on the display.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display a portion of anelectronic document on the display; detect a content selection input;and in response to detecting the content selection input: identify aselected portion of the document in accordance with the contentselection input; and in accordance with a determination that theselected portion of the document includes content that is outside of acurrently displayed portion of the document, adjust display of thedocument so that the entire selected portion of the document isdisplayed on the display.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes a portionof an electronic document. A content selection input is detected. Inresponse to detecting the content selection input: a selected portion ofthe document is identified in accordance with the content selectioninput; and in accordance with a determination that the selected portionof the document includes content that is outside of a currentlydisplayed portion of the document, display of the document is adjustedso that the entire selected portion of the document is displayed on thedisplay.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying a portion of an electronic document on thedisplay; means for detecting a content selection input; and in responseto detecting the content selection input: means for identifying aselected portion of the document in accordance with the contentselection input; and means for, in accordance with a determination thatthe selected portion of the document includes content that is outside ofa currently displayed portion of the document, adjusting display of thedocument so that the entire selected portion of the document isdisplayed on the display.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means fordisplaying a portion of an electronic document on the display; means fordetecting a content selection input; and in response to detecting thecontent selection input: means for identifying a selected portion of thedocument in accordance with the content selection input; and means for,in accordance with a determination that the selected portion of thedocument includes content that is outside of a currently displayedportion of the document, adjusting display of the document so that theentire selected portion of the document is displayed on the display.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying atleast a portion of an electronic document at a first magnification levelon the display; detecting an input indicating a point within an objectin the document; and in response to detecting the input: in accordancewith a determination that the object includes respective editable text:selecting a second magnification level different from the firstmagnification level, where the second magnification level is selected soas to display the respective text at a target text display size; anddisplaying the document at the second magnification level; and inaccordance with a determination that the object does not includeeditable text: selecting a third magnification level different from thesecond magnification level, where the third magnification level isselected so as to display the object at a target object display size;and displaying the document at the third magnification level.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying at least a portion of an electronicdocument at a first magnification level on the display; detecting aninput indicating a point within an object in the document; and inresponse to detecting the input: in accordance with a determination thatthe object includes respective editable text: selecting a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display therespective text at a target text display size; and displaying thedocument at the second magnification level; and in accordance with adetermination that the object does not include editable text: selectinga third magnification level different from the second magnificationlevel, where the third magnification level is selected so as to displaythe object at a target object display size; and displaying the documentat the third magnification level.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display at least a portionof an electronic document at a first magnification level on the display;detect an input indicating a point within an object in the document; andin response to detecting the input: in accordance with a determinationthat the object includes respective editable text: select a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display therespective text at a target text display size; and display the documentat the second magnification level; and in accordance with adetermination that the object does not include editable text: select athird magnification level different from the second magnification level,where the third magnification level is selected so as to display theobject at a target object display size; and display the document at thethird magnification level.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes at least aportion of an electronic document at a first magnification level. Aninput indicating a point within an object in the document is detected.In response to detecting the input: in accordance with a determinationthat the object includes respective editable text: a secondmagnification level different from the first magnification level isselected, where the second magnification level is selected so as todisplay the respective text at a target text display size; and thedocument is displayed at the second magnification level. In accordancewith a determination that the object does not include editable text: athird magnification level different from the second magnification levelis selected, where the third magnification level is selected so as todisplay the object at a target object display size; and the document isdisplayed at the third magnification level.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying at least a portion of an electronicdocument at a first magnification level on the display; means fordetecting an input indicating a point within an object in the document;and in response to detecting the input: in accordance with adetermination that the object includes respective editable text: meansfor selecting a second magnification level different from the firstmagnification level, where the second magnification level is selected soas to display the respective text at a target text display size; andmeans for displaying the document at the second magnification level; andin accordance with a determination that the object does not includeeditable text: means for selecting a third magnification level differentfrom the second magnification level, where the third magnification levelis selected so as to display the object at a target object display size;and means for displaying the document at the third magnification level.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means fordisplaying at least a portion of an electronic document at a firstmagnification level on the display; means for detecting an inputindicating a point within an object in the document; and in response todetecting the input: in accordance with a determination that the objectincludes respective editable text: means for selecting a secondmagnification level different from the first magnification level, wherethe second magnification level is selected so as to display therespective text at a target text display size; and means for displayingthe document at the second magnification level; and in accordance with adetermination that the object does not include editable text: means forselecting a third magnification level different from the secondmagnification level, where the third magnification level is selected soas to display the object at a target object display size; and means fordisplaying the document at the third magnification level.

In accordance with some embodiments, a method is performed at anelectronic device with a display. The method includes: displaying atleast a portion of an electronic document at a user-specifiedmagnification level; while the document is in a document-display mode,receiving a request to enter a document-editing mode distinct from thedocument-display mode; and in response to receiving the request to enterthe document-editing mode: entering the document-editing mode; anddisplaying the document at a predefined document-editing magnificationlevel different from the user-specified magnification level; while thedocument is in a document-editing mode, receiving a request to exit thedocument-editing mode; and in response to receiving the request to exitthe document-editing mode: exiting the document-editing mode; anddisplaying the document at the user-specified magnification level.

In accordance with some embodiments, an electronic device includes adisplay, one or more processors, memory, and one or more programs. Theone or more programs are stored in the memory and configured to beexecuted by the one or more processors. The one or more programs includeinstructions for: displaying at least a portion of an electronicdocument at a user-specified magnification level; while the document isin a document-display mode, receiving a request to enter adocument-editing mode distinct from the document-display mode; and inresponse to receiving the request to enter the document-editing mode:entering the document-editing mode; and displaying the document at apredefined document-editing magnification level different from theuser-specified magnification level; while the document is in adocument-editing mode, receiving a request to exit the document-editingmode; and in response to receiving the request to exit thedocument-editing mode: exiting the document-editing mode; and displayingthe document at the user-specified magnification level.

In accordance with some embodiments, a computer readable storage mediumhas stored therein instructions which when executed by an electronicdevice with a display, cause the device to: display at least a portionof an electronic document at a user-specified magnification level; whilethe document is in a document-display mode, receive a request to enter adocument-editing mode distinct from the document-display mode; and inresponse to receiving the request to enter the document-editing mode:enter the document-editing mode; and display the document at apredefined document-editing magnification level different from theuser-specified magnification level; while the document is in adocument-editing mode, receive a request to exit the document-editingmode; and in response to receiving the request to exit thedocument-editing mode: exit the document-editing mode; and display thedocument at the user-specified magnification level.

In accordance with some embodiments, a graphical user interface on anelectronic device with a display, a memory, and one or more processorsto execute one or more programs stored in the memory includes at least aportion of an electronic document at a user-specified magnificationlevel; where: while the document is in a document-display mode, arequest to enter a document-editing mode distinct from thedocument-display mode is received; and in response to receiving therequest to enter the document-editing mode: the document-editing mode isentered; and the document is displayed at a predefined document-editingmagnification level different from the user-specified magnificationlevel; while the document is in a document-editing mode, a request toexit the document-editing mode is received; and in response to receivingthe request to exit the document-editing mode: the document-editing modeis exited; and the document is displayed at the user-specifiedmagnification level.

In accordance with some embodiments, an electronic device includes: adisplay; means for displaying at least a portion of an electronicdocument at a user-specified magnification level; means for, while thedocument is in a document-display mode, receiving a request to enter adocument-editing mode distinct from the document-display mode; and inresponse to receiving the request to enter the document-editing mode:means for entering the document-editing mode; and means for displayingthe document at a predefined document-editing magnification leveldifferent from the user-specified magnification level; means for, whilethe document is in a document-editing mode, receiving a request to exitthe document-editing mode; and in response to receiving the request toexit the document-editing mode: means for exiting the document-editingmode; and means for displaying the document at the user-specifiedmagnification level.

In accordance with some embodiments, an information processing apparatusfor use in an electronic device with a display includes: means fordisplaying at least a portion of an electronic document at auser-specified magnification level; means for, while the document is ina document-display mode, receiving a request to enter a document-editingmode distinct from the document-display mode; and in response toreceiving the request to enter the document-editing mode: means forentering the document-editing mode; and means for displaying thedocument at a predefined document-editing magnification level differentfrom the user-specified magnification level; means for, while thedocument is in a document-editing mode, receiving a request to exit thedocument-editing mode; and in response to receiving the request to exitthe document-editing mode: means for exiting the document-editing mode;and means for displaying the document at the user-specifiedmagnification level.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display at least a portion of an electronicdocument with a predefined page layout at a first magnification level;and a processing unit coupled to the display unit. The processing unitis configured to: detect a first input indicating a first insertionpoint in the document, wherein the first insertion point is proximate toa first portion of text in the document; and in response to detectingthe first input: select a second magnification level different from thefirst magnification level, wherein the second magnification level isselected so as to display the first portion of text at a target textdisplay size; and while maintaining the predefined page layout of thedocument, enable display of, at the second magnification level, aportion of the document that includes the first portion of text.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display at least a portion of an electronicdocument at a first magnification level; and a processing unit coupledto the display unit. The processing unit is configured to: detect afirst input indicating a first insertion point in the document, whereinthe first insertion point is proximate to a first portion of text in thedocument; in response to detecting the first input: select a secondmagnification level different from the first magnification level,wherein the second magnification level is selected so as to display thefirst portion of text at a default target text display size; and enabledisplay of a portion of the document at the second magnification level;detect a second input corresponding to a request to display a portion ofthe document at a third magnification level different from the secondmagnification level; in response to detecting the second input: enabledisplay of the portion of the document at the third magnification level;and store a user-adjusted target text display size corresponding to atext display size of the first portion of text at the thirdmagnification level, wherein the user-adjusted target text display sizeis different from the default target text display size; and afterstoring the user-adjusted target text display size: detect a third inputindicating a second insertion point in the document, wherein the secondinsertion point is proximate to a second portion of text in thedocument; and in response to detecting the third input, enable displayof the document at a respective magnification level such that the secondportion of text is displayed at the user-adjusted target text displaysize.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display at least a portion of an electronicdocument at a first magnification level; and a processing unit coupledto the display unit. The processing unit is configured to: detect afirst input indicating a first insertion point in the document, whereinthe first insertion point is proximate to a first portion of text in thedocument, the first portion of text having a first font size; inresponse to detecting the first input: select a second magnificationlevel different from the first magnification level, wherein the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and enable display of a portion ofthe document at the second magnification level; while displaying theportion of the document at the second magnification level, detect asecond input indicating a second insertion point in the document,wherein the second insertion point is proximate to a second portion oftext in the document, the second portion of text having a second fontsize different from the first font size; and in response to detectingthe second input: select a third magnification level different from thesecond magnification level, wherein the third magnification level isselected so as to display the second portion of text at the target textdisplay size; and enable display of a portion of the document at thethird magnification level.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display a portion of an electronic document;and a processing unit coupled to the display unit. The processing unitis configured to: detect a content selection input; and in response todetecting the content selection input: identify a selected portion ofthe document in accordance with the content selection input; and inaccordance with a determination that the selected portion of thedocument includes content that is outside of a currently displayedportion of the document, adjust display of the document so that theentire selected portion of the document is displayed on the displayunit.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display at least a portion of an electronicdocument at a first magnification level; and a processing unit coupledto the display unit. The processing unit is configured to: detect aninput indicating a point within an object in the document; and inresponse to detecting the input: in accordance with a determination thatthe object includes respective editable text: select a secondmagnification level different from the first magnification level,wherein the second magnification level is selected so as to display therespective text at a target text display size; and enable display of thedocument at the second magnification level; and in accordance with adetermination that the object does not include editable text: select athird magnification level different from the second magnification level,wherein the third magnification level is selected so as to display theobject at a target object display size; and enable display of thedocument at the third magnification level.

In accordance with some embodiments, an electronic device includes adisplay unit configured to display at least a portion of an electronicdocument at a user-specified magnification level; and a processing unitcoupled to the display unit. The processing unit is configured to: whilethe document is in a document-display mode, receive a request to enter adocument-editing mode distinct from the document-display mode; and inresponse to receiving the request to enter the document-editing mode:enter the document-editing mode; and enable display of the document at apredefined document-editing magnification level different from theuser-specified magnification level; while the document is in adocument-editing mode, receive a request to exit the document-editingmode; and in response to receiving the request to exit thedocument-editing mode: exit the document-editing mode; and enabledisplay of the document at the user-specified magnification level.

Thus, electronic devices with displays and touch-sensitive surfaces areprovided with faster, more efficient methods and interfaces fornavigating and editing an electronic document, thereby increasing theeffectiveness, efficiency, and user satisfaction with such devices. Suchmethods and interfaces may complement or replace conventional methodsfor navigating and editing an electronic document.

BRIEF DESCRIPTION OF THE DRAWINGS

For a better understanding of the aforementioned embodiments of theinvention as well as additional embodiments thereof, reference should bemade to the Description of Embodiments below, in conjunction with thefollowing drawings in which like reference numerals refer tocorresponding parts throughout the figures.

FIG. 1A is a block diagram illustrating a portable multifunction devicewith a touch-sensitive display in accordance with some embodiments.

FIG. 1B is a block diagram illustrating exemplary components for eventhandling in accordance with some embodiments.

FIG. 2 illustrates a portable multifunction device having a touch screenin accordance with some embodiments.

FIG. 3 is a block diagram of an exemplary multifunction device with adisplay and a touch-sensitive surface in accordance with someembodiments.

FIG. 4A illustrates an exemplary user interface for a menu ofapplications on a portable multifunction device in accordance with someembodiments.

FIG. 4B illustrates an exemplary user interface for a multifunctiondevice with a touch-sensitive surface that is separate from the displayin accordance with some embodiments.

FIGS. 5A-5AA illustrate exemplary user interfaces for navigating andediting an electronic document in accordance with some embodiments.

FIGS. 6A-6E are flow diagrams illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIGS. 7A-7B are flow diagrams illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIGS. 8A-8B are flow diagrams illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIGS. 9A-9B are flow diagrams illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIG. 10 is a flow diagram illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIGS. 11A-11B are flow diagrams illustrating a method of navigating andediting an electronic document in accordance with some embodiments.

FIG. 12 is a functional block diagram of an electronic device inaccordance with some embodiments.

FIG. 13 is a functional block diagram of an electronic device inaccordance with some embodiments.

FIG. 14 is a functional block diagram of an electronic device inaccordance with some embodiments.

FIG. 15 is a functional block diagram of an electronic device inaccordance with some embodiments.

FIG. 16 is a functional block diagram of an electronic device inaccordance with some embodiments.

FIG. 17 is a functional block diagram of an electronic device inaccordance with some embodiments.

DESCRIPTION OF EMBODIMENTS

Described below are devices and methods that allow a user to efficientlynavigate and edit electronic documents. The methods are particularlyuseful on portable devices with small displays, including handheld orpocket-sized devices (e.g., smart phones). For such portable devices, auser may find himself (or herself) constantly needing to manuallyreadjust the text display size as the user moves through the document,from a very small text display size to get an overview of the documentto a larger text display size to clearly see the text being edited.These adjustments require multiple inputs and extensive hand-eyecoordination. Such adjustments quickly become annoying and tiresome tousers. The methods described herein include:

-   -   Automatically zooming in on a user-specified insertion point        when entering a document editing mode and displaying the text at        the insertion point at a target text display size for easy        viewing and editing;    -   Easily modifying the target text display size from a default        value to a user-adjusted value;    -   Automatically adjusting the display magnification to maintain a        target text display size as the insertion point is moved between        areas in a document with different font sizes;    -   Automatically zooming out at the completion of a text selection        gesture to see the entire portion of text that has been        selected;    -   Automatically zooming to display an object at a size that        accommodates the object or, when the object contains editable        text, automatically zooming to display the editable text within        the object at a size that accommodates the text; and    -   Automatically switching back and forth from a user-specified        magnification level in a document-display mode to a predefined        document-editing magnification level in an editing mode.

These methods greatly reduce the number of steps that a user has toperform to navigate and edit a document, thereby increasing efficiencyand ease of use when performing these tasks.

Below, FIGS. 1A-1B, 2, 3, and 12-17 provide a description of exemplarydevices. FIGS. 4A-4B and 5A-5AA illustrate exemplary user interfaces fornavigating and editing an electronic document. FIGS. 6A-6E, 7A-7B,8A-8B, 9A-9B, 10, 11A-11 b are flow diagrams illustrating methods ofnavigating and editing an electronic document. The user interfaces inFIGS. 5A-5AA are used to illustrate the processes in FIGS. 6A-6E, 7A-7B,8A-8B, 9A-9B, 10, 11A-11B.

Exemplary Devices

Reference will now be made in detail to embodiments, examples of whichare illustrated in the accompanying drawings. In the following detaileddescription, numerous specific details are set forth in order to providea thorough understanding of the present invention. However, it will beapparent to one of ordinary skill in the art that the present inventionmay be practiced without these specific details. In other instances,well-known methods, procedures, components, circuits, and networks havenot been described in detail so as not to unnecessarily obscure aspectsof the embodiments.

It will also be understood that, although the terms first, second, etc.may be used herein to describe various elements, these elements shouldnot be limited by these terms. These terms are only used to distinguishone element from another. For example, a first contact could be termed asecond contact, and, similarly, a second contact could be termed a firstcontact, without departing from the scope of the present invention. Thefirst contact and the second contact are both contacts, but they are notthe same contact.

The terminology used in the description of the invention herein is forthe purpose of describing particular embodiments only and is notintended to be limiting of the invention. As used in the description ofthe invention and the appended claims, the singular forms “a”, “an” and“the” are intended to include the plural forms as well, unless thecontext clearly indicates otherwise. It will also be understood that theterm “and/or” as used herein refers to and encompasses any and allpossible combinations of one or more of the associated listed items. Itwill be further understood that the terms “includes,” “including,”“comprises,” and/or “comprising,” when used in this specification,specify the presence of stated features, integers, steps, operations,elements, and/or components, but do not preclude the presence oraddition of one or more other features, integers, steps, operations,elements, components, and/or groups thereof.

As used herein, the term “if” may be construed to mean “when” or “upon”or “in response to determining” or “in response to detecting,” dependingon the context. Similarly, the phrase “if it is determined” or “if [astated condition or event] is detected” may be construed to mean “upondetermining” or “in response to determining” or “upon detecting [thestated condition or event]” or “in response to detecting [the statedcondition or event],” depending on the context.

Embodiments of electronic devices, user interfaces for such devices, andassociated processes for using such devices are described. In someembodiments, the device is a portable communications device, such as amobile telephone, that also contains other functions, such as PDA and/ormusic player functions. Exemplary embodiments of portable multifunctiondevices include, without limitation, the iPhone®, iPod Touch®, and iPad®devices from Apple Inc. of Cupertino, Calif. Other portable electronicdevices, such as laptops or tablet computers with touch-sensitivesurfaces (e.g., touch screen displays and/or touch pads), may also beused. It should also be understood that, in some embodiments, the deviceis not a portable device, but is a desktop computer with atouch-sensitive surface (e.g., a touch screen display and/or a touchpad).

In the discussion that follows, an electronic device that includes adisplay and a touch-sensitive surface is described. It should beunderstood, however, that the electronic device may include one or moreother physical user-interface devices, such as a physical keyboard, amouse and/or a joystick.

The device typically supports a variety of applications, such as one ormore of the following: a drawing application, a presentationapplication, a word processing application, a website creationapplication, a disk authoring application, a spreadsheet application, agaming application, a telephone application, a video conferencingapplication, an e-mail application, an instant messaging application, aworkout support application, a photo management application, a digitalcamera application, a digital video camera application, a web browsingapplication, a digital music player application, and/or a digital videoplayer application.

The various applications that may be executed on the device may use atleast one common physical user-interface device, such as thetouch-sensitive surface. One or more functions of the touch-sensitivesurface as well as corresponding information displayed on the device maybe adjusted and/or varied from one application to the next and/or withina respective application. In this way, a common physical architecture(such as the touch-sensitive surface) of the device may support thevariety of applications with user interfaces that are intuitive andtransparent to the user.

Attention is now directed toward embodiments of portable devices withtouch-sensitive displays. FIG. 1A is a block diagram illustratingportable multifunction device 100 with touch-sensitive displays 112 inaccordance with some embodiments. Touch-sensitive display 112 issometimes called a “touch screen” for convenience, and may also be knownas or called a touch-sensitive display system. Device 100 may includememory 102 (which may include one or more computer readable storagemediums), memory controller 122, one or more processing units (CPU's)120, peripherals interface 118, RF circuitry 108, audio circuitry 110,speaker 111, microphone 113, input/output (I/O) subsystem 106, otherinput or control devices 116, and external port 124. Device 100 mayinclude one or more optical sensors 164. These components maycommunicate over one or more communication buses or signal lines 103.

It should be appreciated that device 100 is only one example of aportable multifunction device, and that device 100 may have more orfewer components than shown, may combine two or more components, or mayhave a different configuration or arrangement of the components. Thevarious components shown in FIG. 1A may be implemented in hardware,software, or a combination of both hardware and software, including oneor more signal processing and/or application specific integratedcircuits.

Memory 102 may include high-speed random access memory and may alsoinclude non-volatile memory, such as one or more magnetic disk storagedevices, flash memory devices, or other non-volatile solid-state memorydevices. Access to memory 102 by other components of device 100, such asCPU 120 and the peripherals interface 118, may be controlled by memorycontroller 122.

Peripherals interface 118 can be used to couple input and outputperipherals of the device to CPU 120 and memory 102. The one or moreprocessors 120 run or execute various software programs and/or sets ofinstructions stored in memory 102 to perform various functions fordevice 100 and to process data.

In some embodiments, peripherals interface 118, CPU 120, and memorycontroller 122 may be implemented on a single chip, such as chip 104. Insome other embodiments, they may be implemented on separate chips.

RF (radio frequency) circuitry 108 receives and sends RF signals, alsocalled electromagnetic signals. RF circuitry 108 converts electricalsignals to/from electromagnetic signals and communicates withcommunications networks and other communications devices via theelectromagnetic signals. RF circuitry 108 may include well-knowncircuitry for performing these functions, including but not limited toan antenna system, an RF transceiver, one or more amplifiers, a tuner,one or more oscillators, a digital signal processor, a CODEC chipset, asubscriber identity module (SIM) card, memory, and so forth. RFcircuitry 108 may communicate with networks, such as the Internet, alsoreferred to as the World Wide Web (WWW), an intranet and/or a wirelessnetwork, such as a cellular telephone network, a wireless local areanetwork (LAN) and/or a metropolitan area network (MAN), and otherdevices by wireless communication. The wireless communication may useany of a plurality of communications standards, protocols andtechnologies, including but not limited to Global System for MobileCommunications (GSM), Enhanced Data GSM Environment (EDGE), high-speeddownlink packet access (HSDPA), high-speed uplink packet access (HSUPA),wideband code division multiple access (W-CDMA), code division multipleaccess (CDMA), time division multiple access (TDMA), Bluetooth, WirelessFidelity (Wi-Fi) (e.g., IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and/orIEEE 802.11n), voice over Internet Protocol (VoIP), Wi-MAX, a protocolfor e-mail (e.g., Internet message access protocol (IMAP) and/or postoffice protocol (POP)), instant messaging (e.g., extensible messagingand presence protocol (XMPP), Session Initiation Protocol for InstantMessaging and Presence Leveraging Extensions (SIMPLE), Instant Messagingand Presence Service (IMPS)), and/or Short Message Service (SMS), or anyother suitable communication protocol, including communication protocolsnot yet developed as of the filing date of this document.

Audio circuitry 110, speaker 111, and microphone 113 provide an audiointerface between a user and device 100. Audio circuitry 110 receivesaudio data from peripherals interface 118, converts the audio data to anelectrical signal, and transmits the electrical signal to speaker 111.Speaker 111 converts the electrical signal to human-audible sound waves.Audio circuitry 110 also receives electrical signals converted bymicrophone 113 from sound waves. Audio circuitry 110 converts theelectrical signal to audio data and transmits the audio data toperipherals interface 118 for processing. Audio data may be retrievedfrom and/or transmitted to memory 102 and/or RF circuitry 108 byperipherals interface 118. In some embodiments, audio circuitry 110 alsoincludes a headset jack (e.g., 212, FIG. 2). The headset jack providesan interface between audio circuitry 110 and removable audioinput/output peripherals, such as output-only headphones or a headsetwith both output (e.g., a headphone for one or both ears) and input(e.g., a microphone).

I/O subsystem 106 couples input/output peripherals on device 100, suchas touch screen 112 and other input control devices 116, to peripheralsinterface 118. I/O subsystem 106 may include display controller 156 andone or more input controllers 160 for other input or control devices.The one or more input controllers 160 receive/send electrical signalsfrom/to other input or control devices 116. The other input controldevices 116 may include physical buttons (e.g., push buttons, rockerbuttons, etc.), dials, slider switches, joysticks, click wheels, and soforth. In some alternate embodiments, input controller(s) 160 may becoupled to any (or none) of the following: a keyboard, infrared port,USB port, and a pointer device such as a mouse. The one or more buttons(e.g., 208, FIG. 2) may include an up/down button for volume control ofspeaker 111 and/or microphone 113. The one or more buttons may include apush button (e.g., 206, FIG. 2).

Touch-sensitive display 112 provides an input interface and an outputinterface between the device and a user. Display controller 156 receivesand/or sends electrical signals from/to touch screen 112. Touch screen112 displays visual output to the user. The visual output may includegraphics, text, icons, video, and any combination thereof (collectivelytermed “graphics”). In some embodiments, some or all of the visualoutput may correspond to user-interface objects.

Touch screen 112 has a touch-sensitive surface, sensor or set of sensorsthat accepts input from the user based on haptic and/or tactile contact.Touch screen 112 and display controller 156 (along with any associatedmodules and/or sets of instructions in memory 102) detect contact (andany movement or breaking of the contact) on touch screen 112 andconverts the detected contact into interaction with user-interfaceobjects (e.g., one or more soft keys, icons, web pages or images) thatare displayed on touch screen 112. In an exemplary embodiment, a pointof contact between touch screen 112 and the user corresponds to a fingerof the user.

Touch screen 112 may use LCD (liquid crystal display) technology, LPD(light emitting polymer display) technology, or LED (light emittingdiode) technology, although other display technologies may be used inother embodiments. Touch screen 112 and display controller 156 maydetect contact and any movement or breaking thereof using any of aplurality of touch sensing technologies now known or later developed,including but not limited to capacitive, resistive, infrared, andsurface acoustic wave technologies, as well as other proximity sensorarrays or other elements for determining one or more points of contactwith touch screen 112. In an exemplary embodiment, projected mutualcapacitance sensing technology is used, such as that found in theiPhone®, iPod Touch®, and iPad® from Apple Inc. of Cupertino, Calif.

Touch screen 112 may have a video resolution in excess of 100 dpi. Insome embodiments, the touch screen has a video resolution ofapproximately 160 dpi. The user may make contact with touch screen 112using any suitable object or appendage, such as a stylus, a finger, andso forth. In some embodiments, the user interface is designed to workprimarily with finger-based contacts and gestures, which can be lessprecise than stylus-based input due to the larger area of contact of afinger on the touch screen. In some embodiments, the device translatesthe rough finger-based input into a precise pointer/cursor position orcommand for performing the actions desired by the user.

In some embodiments, in addition to the touch screen, device 100 mayinclude a touchpad (not shown) for activating or deactivating particularfunctions. In some embodiments, the touchpad is a touch-sensitive areaof the device that, unlike the touch screen, does not display visualoutput. The touchpad may be a touch-sensitive surface that is separatefrom touch screen 112 or an extension of the touch-sensitive surfaceformed by the touch screen.

Device 100 also includes power system 162 for powering the variouscomponents. Power system 162 may include a power management system, oneor more power sources (e.g., battery, alternating current (AC)), arecharging system, a power failure detection circuit, a power converteror inverter, a power status indicator (e.g., a light-emitting diode(LED)) and any other components associated with the generation,management and distribution of power in portable devices.

Device 100 may also include one or more optical sensors 164. FIG. 1Ashows an optical sensor coupled to optical sensor controller 158 in I/Osubsystem 106. Optical sensor 164 may include charge-coupled device(CCD) or complementary metal-oxide semiconductor (CMOS)phototransistors. Optical sensor 164 receives light from theenvironment, projected through one or more lens, and converts the lightto data representing an image. In conjunction with imaging module 143(also called a camera module), optical sensor 164 may capture stillimages or video. In some embodiments, an optical sensor is located onthe back of device 100, opposite touch screen display 112 on the frontof the device, so that the touch screen display may be used as aviewfinder for still and/or video image acquisition. In someembodiments, another optical sensor is located on the front of thedevice so that the user's image may be obtained for videoconferencingwhile the user views the other video conference participants on thetouch screen display.

Device 100 may also include one or more proximity sensors 166. FIG. 1Ashows proximity sensor 166 coupled to peripherals interface 118.Alternately, proximity sensor 166 may be coupled to input controller 160in I/O subsystem 106. In some embodiments, the proximity sensor turnsoff and disables touch screen 112 when the multifunction device isplaced near the user's ear (e.g., when the user is making a phone call).

Device 100 may also include one or more accelerometers 168. FIG. 1Ashows accelerometer 168 coupled to peripherals interface 118.Alternately, accelerometer 168 may be coupled to an input controller 160in I/O subsystem 106. In some embodiments, information is displayed onthe touch screen display in a portrait view or a landscape view based onan analysis of data received from the one or more accelerometers. Device100 optionally includes, in addition to accelerometer(s) 168, amagnetometer (not shown) and a GPS (or GLONASS or other globalnavigation system) receiver (not shown) for obtaining informationconcerning the location and orientation (e.g., portrait or landscape) ofdevice 100.

In some embodiments, the software components stored in memory 102include operating system 126, communication module (or set ofinstructions) 128, contact/motion module (or set of instructions) 130,graphics module (or set of instructions) 132, text input module (or setof instructions) 134, Global Positioning System (GPS) module (or set ofinstructions) 135, and applications (or sets of instructions) 136.Furthermore, in some embodiments memory 102 stores device/globalinternal state 157, as shown in FIGS. 1A and 3. Device/global internalstate 157 includes one or more of: active application state, indicatingwhich applications, if any, are currently active; display state,indicating what applications, views or other information occupy variousregions of touch screen display 112; sensor state, including informationobtained from the device's various sensors and input control devices116; and location information concerning the device's location and/orattitude.

Operating system 126 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, oran embedded operating system such as VxWorks) includes various softwarecomponents and/or drivers for controlling and managing general systemtasks (e.g., memory management, storage device control, powermanagement, etc.) and facilitates communication between various hardwareand software components.

Communication module 128 facilitates communication with other devicesover one or more external ports 124 and also includes various softwarecomponents for handling data received by RF circuitry 108 and/orexternal port 124. External port 124 (e.g., Universal Serial Bus (USB),FIREWIRE, etc.) is adapted for coupling directly to other devices orindirectly over a network (e.g., the Internet, wireless LAN, etc.). Insome embodiments, the external port is a multi-pin (e.g., 30-pin)connector that is the same as, or similar to and/or compatible with the30-pin connector used on iPod (trademark of Apple Inc.) devices.

Contact/motion module 130 may detect contact with touch screen 112 (inconjunction with display controller 156) and other touch sensitivedevices (e.g., a touchpad or physical click wheel). Contact/motionmodule 130 includes various software components for performing variousoperations related to detection of contact, such as determining ifcontact has occurred (e.g., detecting a finger-down event), determiningif there is movement of the contact and tracking the movement across thetouch-sensitive surface (e.g., detecting one or more finger-draggingevents), and determining if the contact has ceased (e.g., detecting afinger-up event or a break in contact). Contact/motion module 130receives contact data from the touch-sensitive surface. Determiningmovement of the point of contact, which is represented by a series ofcontact data, may include determining speed (magnitude), velocity(magnitude and direction), and/or an acceleration (a change in magnitudeand/or direction) of the point of contact. These operations may beapplied to single contacts (e.g., one finger contacts) or to multiplesimultaneous contacts (e.g., “multitouch”/multiple finger contacts). Insome embodiments, contact/motion module 130 and display controller 156detect contact on a touchpad.

Contact/motion module 130 may detect a gesture input by a user.Different gestures on the touch-sensitive surface have different contactpatterns. Thus, a gesture may be detected by detecting a particularcontact pattern. For example, detecting a finger tap gesture includesdetecting a finger-down event followed by detecting a finger-up (liftoff) event at the same position (or substantially the same position) asthe finger-down event (e.g., at the position of an icon). As anotherexample, detecting a finger swipe gesture on the touch-sensitive surfaceincludes detecting a finger-down event followed by detecting one or morefinger-dragging events, and subsequently followed by detecting afinger-up (lift off) event.

Graphics module 132 includes various known software components forrendering and displaying graphics on touch screen 112 or other display,including components for changing the intensity of graphics that aredisplayed. As used herein, the term “graphics” includes any object thatcan be displayed to a user, including without limitation text, webpages, icons (such as user-interface objects including soft keys),digital images, videos, animations and the like.

In some embodiments, graphics module 132 stores data representinggraphics to be used. Each graphic may be assigned a corresponding code.Graphics module 132 receives, from applications etc., one or more codesspecifying graphics to be displayed along with, if necessary, coordinatedata and other graphic property data, and then generates screen imagedata to output to display controller 156.

Text input module 134, which may be a component of graphics module 132,provides soft keyboards for entering text in various applications (e.g.,contacts 137, e-mail 140, IM 141, browser 147, and any other applicationthat needs text input).

GPS module 135 determines the location of the device and provides thisinformation for use in various applications (e.g., to telephone 138 foruse in location-based dialing, to camera 143 as picture/video metadata,and to applications that provide location-based services such as weatherwidgets, local yellow page widgets, and map/navigation widgets).

Applications 136 may include the following modules (or sets ofinstructions), or a subset or superset thereof:

-   -   contacts module 137 (sometimes called an address book or contact        list);    -   telephone module 138;    -   video conferencing module 139;    -   e-mail client module 140;    -   instant messaging (IM) module 141;    -   workout support module 142;    -   camera module 143 for still and/or video images;    -   image management module 144;    -   browser module 147;    -   calendar module 148;    -   widget modules 149, which may include one or more of: weather        widget 149-1, stocks widget 149-2, calculator widget 149-3,        alarm clock widget 149-4, dictionary widget 149-5, and other        widgets obtained by the user, as well as user-created widgets        149-6;    -   widget creator module 150 for making user-created widgets 149-6;    -   search module 151;    -   video and music player module 152, which may be made up of a        video player module and a music player module;    -   notes module 153;    -   map module 154; and/or    -   online video module 155.

Examples of other applications 136 that may be stored in memory 102include other word processing applications (e.g., word processing module384), other image editing applications, drawing applications (e.g.,drawing module 380), presentation applications (presentation module382), spreadsheet applications (e.g., spreadsheet module 390), websitecreation applications (e.g., website creation module 386), JAVA-enabledapplications, encryption, digital rights management, voice recognition,and voice replication.

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, and text input module 134, contactsmodule 137 may be used to manage an address book or contact list (e.g.,stored in application internal state 192 of contacts module 137 inmemory 102 or memory 370), including: adding name(s) to the addressbook; deleting name(s) from the address book; associating telephonenumber(s), e-mail address(es), physical address(es) or other informationwith a name; associating an image with a name; categorizing and sortingnames; providing telephone numbers or e-mail addresses to initiateand/or facilitate communications by telephone 138, video conference 139,e-mail 140, or IM 141; and so forth.

In conjunction with RF circuitry 108, audio circuitry 110, speaker 111,microphone 113, touch screen 112, display controller 156, contact module130, graphics module 132, and text input module 134, telephone module138 may be used to enter a sequence of characters corresponding to atelephone number, access one or more telephone numbers in address book137, modify a telephone number that has been entered, dial a respectivetelephone number, conduct a conversation and disconnect or hang up whenthe conversation is completed. As noted above, the wirelesscommunication may use any of a plurality of communications standards,protocols and technologies.

In conjunction with RF circuitry 108, audio circuitry 110, speaker 111,microphone 113, touch screen 112, display controller 156, optical sensor164, optical sensor controller 158, contact module 130, graphics module132, text input module 134, contact list 137, and telephone module 138,videoconferencing module 139 includes executable instructions toinitiate, conduct, and terminate a video conference between a user andone or more other participants in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, and text inputmodule 134, e-mail client module 140 includes executable instructions tocreate, send, receive, and manage e-mail in response to userinstructions. In conjunction with image management module 144, e-mailclient module 140 makes it very easy to create and send e-mails withstill or video images taken with camera module 143.

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, and text inputmodule 134, the instant messaging module 141 includes executableinstructions to enter a sequence of characters corresponding to aninstant message, to modify previously entered characters, to transmit arespective instant message (for example, using a Short Message Service(SMS) or Multimedia Message Service (MMS) protocol for telephony-basedinstant messages or using XMPP, SIMPLE, or IMPS for Internet-basedinstant messages), to receive instant messages and to view receivedinstant messages. In some embodiments, transmitted and/or receivedinstant messages may include graphics, photos, audio files, video filesand/or other attachments as are supported in a MMS and/or an EnhancedMessaging Service (EMS). As used herein, “instant messaging” refers toboth telephony-based messages (e.g., messages sent using SMS or MMS) andInternet-based messages (e.g., messages sent using XMPP, SIMPLE, orIMPS).

In conjunction with RF circuitry 108, touch screen 112, displaycontroller 156, contact module 130, graphics module 132, text inputmodule 134, GPS module 135, map module 154, and music player module 146,workout support module 142 includes executable instructions to createworkouts (e.g., with time, distance, and/or calorie burning goals);communicate with workout sensors (sports devices); receive workoutsensor data; calibrate sensors used to monitor a workout; select andplay music for a workout; and display, store and transmit workout data.

In conjunction with touch screen 112, display controller 156, opticalsensor(s) 164, optical sensor controller 158, contact module 130,graphics module 132, and image management module 144, camera module 143includes executable instructions to capture still images or video(including a video stream) and store them into memory 102, modifycharacteristics of a still image or video, or delete a still image orvideo from memory 102.

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, text input module 134, and cameramodule 143, image management module 144 includes executable instructionsto arrange, modify (e.g., edit), or otherwise manipulate, label, delete,present (e.g., in a digital slide show or album), and store still and/orvideo images.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, and text inputmodule 134, browser module 147 includes executable instructions tobrowse the Internet in accordance with user instructions, includingsearching, linking to, receiving, and displaying web pages or portionsthereof, as well as attachments and other files linked to web pages.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, e-mail client module 140, and browser module 147, calendarmodule 148 includes executable instructions to create, display, modify,and store calendars and data associated with calendars (e.g., calendarentries, to do lists, etc.) in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, and browser module 147, widget modules 149 aremini-applications that may be downloaded and used by a user (e.g.,weather widget 149-1, stocks widget 149-2, calculator widget 149-3,alarm clock widget 149-4, and dictionary widget 149-5) or created by theuser (e.g., user-created widget 149-6). In some embodiments, a widgetincludes an HTML (Hypertext Markup Language) file, a CSS (CascadingStyle Sheets) file, and a JavaScript file. In some embodiments, a widgetincludes an XML (Extensible Markup Language) file and a JavaScript file(e.g., Yahoo! Widgets).

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, and browser module 147, the widget creator module 150 may beused by a user to create widgets (e.g., turning a user-specified portionof a web page into a widget).

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, and text input module 134,search module 151 includes executable instructions to search for text,music, sound, image, video, and/or other files in memory 102 that matchone or more search criteria (e.g., one or more user-specified searchterms) in accordance with user instructions.

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, audio circuitry 110, speaker111, RF circuitry 108, and browser module 147, video and music playermodule 152 includes executable instructions that allow the user todownload and play back recorded music and other sound files stored inone or more file formats, such as MP3 or AAC files, and executableinstructions to display, present or otherwise play back videos (e.g., ontouch screen 112 or on an external, connected display via external port124). In some embodiments, device 100 may include the functionality ofan MP3 player, such as an iPod (trademark of Apple Inc.).

In conjunction with touch screen 112, display controller 156, contactmodule 130, graphics module 132, and text input module 134, notes module153 includes executable instructions to create and manage notes, to dolists, and the like in accordance with user instructions.

In conjunction with RF circuitry 108, touch screen 112, display systemcontroller 156, contact module 130, graphics module 132, text inputmodule 134, GPS module 135, and browser module 147, map module 154 maybe used to receive, display, modify, and store maps and data associatedwith maps (e.g., driving directions; data on stores and other points ofinterest at or near a particular location; and other location-baseddata) in accordance with user instructions.

In conjunction with touch screen 112, display system controller 156,contact module 130, graphics module 132, audio circuitry 110, speaker111, RF circuitry 108, text input module 134, e-mail client module 140,and browser module 147, online video module 155 includes instructionsthat allow the user to access, browse, receive (e.g., by streamingand/or download), play back (e.g., on the touch screen or on anexternal, connected display via external port 124), send an e-mail witha link to a particular online video, and otherwise manage online videosin one or more file formats, such as H.264. In some embodiments, instantmessaging module 141, rather than e-mail client module 140, is used tosend a link to a particular online video.

Each of the above identified modules and applications correspond to aset of executable instructions for performing one or more functionsdescribed above and the methods described in this application (e.g., thecomputer-implemented methods and other information processing methodsdescribed herein). These modules (i.e., sets of instructions) need notbe implemented as separate software programs, procedures or modules, andthus various subsets of these modules may be combined or otherwisere-arranged in various embodiments. In some embodiments, memory 102 maystore a subset of the modules and data structures identified above.Furthermore, memory 102 may store additional modules and data structuresnot described above.

In some embodiments, device 100 is a device where operation of apredefined set of functions on the device is performed exclusivelythrough a touch screen and/or a touchpad. By using a touch screen and/ora touchpad as the primary input control device for operation of device100, the number of physical input control devices (such as push buttons,dials, and the like) on device 100 may be reduced.

The predefined set of functions that may be performed exclusivelythrough a touch screen and/or a touchpad include navigation between userinterfaces. In some embodiments, the touchpad, when touched by the user,navigates device 100 to a main, home, or root menu from any userinterface that may be displayed on device 100. In such embodiments, thetouchpad may be referred to as a “menu button.” In some otherembodiments, the menu button may be a physical push button or otherphysical input control device instead of a touchpad.

FIG. 1B is a block diagram illustrating exemplary components for eventhandling in accordance with some embodiments. In some embodiments,memory 102 (in FIGS. 1A and 1B) or 370 (FIG. 3) includes event sorter170 (e.g., in operating system 126) and a respective application 136-1(e.g., any of the aforementioned applications 137-151, 155, 380-390).

Event sorter 170 receives event information and determines theapplication 136-1 and application view 191 of application 136-1 to whichto deliver the event information. Event sorter 170 includes eventmonitor 171 and event dispatcher module 174. In some embodiments,application 136-1 includes application internal state 192, whichindicates the current application view(s) displayed on touch sensitivedisplay 112 when the application is active or executing. In someembodiments, device/global internal state 157 is used by event sorter170 to determine which application(s) is (are) currently active, andapplication internal state 192 is used by event sorter 170 to determineapplication views 191 to which to deliver event information.

In some embodiments, application internal state 192 includes additionalinformation, such as one or more of: resume information to be used whenapplication 136-1 resumes execution, user interface state informationthat indicates information being displayed or that is ready for displayby application 136-1, a state queue for enabling the user to go back toa prior state or view of application 136-1, and a redo/undo queue ofprevious actions taken by the user.

Event monitor 171 receives event information from peripherals interface118. Event information includes information about a sub-event (e.g., auser touch on touch-sensitive display 112, as part of a multi-touchgesture). Peripherals interface 118 transmits information it receivesfrom I/O subsystem 106 or a sensor, such as proximity sensor 166,accelerometer(s) 168, and/or microphone 113 (through audio circuitry110). Information that peripherals interface 118 receives from I/Osubsystem 106 includes information from touch-sensitive display 112 or atouch-sensitive surface.

In some embodiments, event monitor 171 sends requests to the peripheralsinterface 118 at predetermined intervals. In response, peripheralsinterface 118 transmits event information. In other embodiments,peripheral interface 118 transmits event information only when there isa significant event (e.g., receiving an input above a predeterminednoise threshold and/or for more than a predetermined duration).

In some embodiments, event sorter 170 also includes a hit viewdetermination module 172 and/or an active event recognizer determinationmodule 173.

Hit view determination module 172 provides software procedures fordetermining where a sub-event has taken place within one or more views,when touch sensitive display 112 displays more than one view. Views aremade up of controls and other elements that a user can see on thedisplay.

Another aspect of the user interface associated with an application is aset of views, sometimes herein called application views or userinterface windows, in which information is displayed and touch-basedgestures occur. The application views (of a respective application) inwhich a touch is detected may correspond to programmatic levels within aprogrammatic or view hierarchy of the application. For example, thelowest level view in which a touch is detected may be called the hitview, and the set of events that are recognized as proper inputs may bedetermined based, at least in part, on the hit view of the initial touchthat begins a touch-based gesture.

Hit view determination module 172 receives information related tosub-events of a touch-based gesture. When an application has multipleviews organized in a hierarchy, hit view determination module 172identifies a hit view as the lowest view in the hierarchy which shouldhandle the sub-event. In most circumstances, the hit view is the lowestlevel view in which an initiating sub-event occurs (i.e., the firstsub-event in the sequence of sub-events that form an event or potentialevent). Once the hit view is identified by the hit view determinationmodule, the hit view typically receives all sub-events related to thesame touch or input source for which it was identified as the hit view.

Active event recognizer determination module 173 determines which viewor views within a view hierarchy should receive a particular sequence ofsub-events. In some embodiments, active event recognizer determinationmodule 173 determines that only the hit view should receive a particularsequence of sub-events. In other embodiments, active event recognizerdetermination module 173 determines that all views that include thephysical location of a sub-event are actively involved views, andtherefore determines that all actively involved views should receive aparticular sequence of sub-events. In other embodiments, even if touchsub-events were entirely confined to the area associated with oneparticular view, views higher in the hierarchy would still remain asactively involved views.

Event dispatcher module 174 dispatches the event information to an eventrecognizer (e.g., event recognizer 180). In embodiments including activeevent recognizer determination module 173, event dispatcher module 174delivers the event information to an event recognizer determined byactive event recognizer determination module 173. In some embodiments,event dispatcher module 174 stores in an event queue the eventinformation, which is retrieved by a respective event receiver module182.

In some embodiments, operating system 126 includes event sorter 170.Alternatively, application 136-1 includes event sorter 170. In yet otherembodiments, event sorter 170 is a stand-alone module, or a part ofanother module stored in memory 102, such as contact/motion module 130.

In some embodiments, application 136-1 includes a plurality of eventhandlers 190 and one or more application views 191, each of whichincludes instructions for handling touch events that occur within arespective view of the application's user interface. Each applicationview 191 of the application 136-1 includes one or more event recognizers180. Typically, a respective application view 191 includes a pluralityof event recognizers 180. In other embodiments, one or more of eventrecognizers 180 are part of a separate module, such as a user interfacekit (not shown) or a higher level object from which application 136-1inherits methods and other properties. In some embodiments, a respectiveevent handler 190 includes one or more of: data updater 176, objectupdater 177, GUI updater 178, and/or event data 179 received from eventsorter 170. Event handler 190 may utilize or call data updater 176,object updater 177 or GUI updater 178 to update the application internalstate 192. Alternatively, one or more of the application views 191includes one or more respective event handlers 190. Also, in someembodiments, one or more of data updater 176, object updater 177, andGUI updater 178 are included in a respective application view 191.

A respective event recognizer 180 receives event information (e.g.,event data 179) from event sorter 170, and identifies an event from theevent information. Event recognizer 180 includes event receiver 182 andevent comparator 184. In some embodiments, event recognizer 180 alsoincludes at least a subset of: metadata 183, and event deliveryinstructions 188 (which may include sub-event delivery instructions).

Event receiver 182 receives event information from event sorter 170. Theevent information includes information about a sub-event, for example, atouch or a touch movement. Depending on the sub-event, the eventinformation also includes additional information, such as location ofthe sub-event. When the sub-event concerns motion of a touch the eventinformation may also include speed and direction of the sub-event. Insome embodiments, events include rotation of the device from oneorientation to another (e.g., from a portrait orientation to a landscapeorientation, or vice versa), and the event information includescorresponding information about the current orientation (also calleddevice attitude) of the device.

Event comparator 184 compares the event information to predefined eventor sub-event definitions and, based on the comparison, determines anevent or sub-event, or determines or updates the state of an event orsub-event. In some embodiments, event comparator 184 includes eventdefinitions 186. Event definitions 186 contain definitions of events(e.g., predefined sequences of sub-events), for example, event 1(187-1), event 2 (187-2), and others. In some embodiments, sub-events inan event 187 include, for example, touch begin, touch end, touchmovement, touch cancellation, and multiple touching. In one example, thedefinition for event 1 (187-1) is a double tap on a displayed object.The double tap, for example, comprises a first touch (touch begin) onthe displayed object for a predetermined phase, a first lift-off (touchend) for a predetermined phase, a second touch (touch begin) on thedisplayed object for a predetermined phase, and a second lift-off (touchend) for a predetermined phase. In another example, the definition forevent 2 (187-2) is a dragging on a displayed object. The dragging, forexample, comprises a touch (or contact) on the displayed object for apredetermined phase, a movement of the touch across touch-sensitivedisplay 112, and lift-off of the touch (touch end). In some embodiments,the event also includes information for one or more associated eventhandlers 190.

In some embodiments, event definition 187 includes a definition of anevent for a respective user-interface object. In some embodiments, eventcomparator 184 performs a hit test to determine which user-interfaceobject is associated with a sub-event. For example, in an applicationview in which three user-interface objects are displayed ontouch-sensitive display 112, when a touch is detected on touch-sensitivedisplay 112, event comparator 184 performs a hit test to determine whichof the three user-interface objects is associated with the touch(sub-event). If each displayed object is associated with a respectiveevent handler 190, the event comparator uses the result of the hit testto determine which event handler 190 should be activated. For example,event comparator 184 selects an event handler associated with thesub-event and the object triggering the hit test.

In some embodiments, the definition for a respective event 187 alsoincludes delayed actions that delay delivery of the event informationuntil after it has been determined whether the sequence of sub-eventsdoes or does not correspond to the event recognizer's event type.

When a respective event recognizer 180 determines that the series ofsub-events do not match any of the events in event definitions 186, therespective event recognizer 180 enters an event impossible, eventfailed, or event ended state, after which it disregards subsequentsub-events of the touch-based gesture. In this situation, other eventrecognizers, if any, that remain active for the hit view continue totrack and process sub-events of an ongoing touch-based gesture.

In some embodiments, a respective event recognizer 180 includes metadata183 with configurable properties, flags, and/or lists that indicate howthe event delivery system should perform sub-event delivery to activelyinvolved event recognizers. In some embodiments, metadata 183 includesconfigurable properties, flags, and/or lists that indicate how eventrecognizers may interact with one another. In some embodiments, metadata183 includes configurable properties, flags, and/or lists that indicatewhether sub-events are delivered to varying levels in the view orprogrammatic hierarchy.

In some embodiments, a respective event recognizer 180 activates eventhandler 190 associated with an event when one or more particularsub-events of an event are recognized. In some embodiments, a respectiveevent recognizer 180 delivers event information associated with theevent to event handler 190. Activating an event handler 190 is distinctfrom sending (and deferred sending) sub-events to a respective hit view.In some embodiments, event recognizer 180 throws a flag associated withthe recognized event, and event handler 190 associated with the flagcatches the flag and performs a predefined process.

In some embodiments, event delivery instructions 188 include sub-eventdelivery instructions that deliver event information about a sub-eventwithout activating an event handler. Instead, the sub-event deliveryinstructions deliver event information to event handlers associated withthe series of sub-events or to actively involved views. Event handlersassociated with the series of sub-events or with actively involved viewsreceive the event information and perform a predetermined process.

In some embodiments, data updater 176 creates and updates data used inapplication 136-1. For example, data updater 176 updates the telephonenumber used in contacts module 137, or stores a video file used in videoplayer module 145. In some embodiments, object updater 177 creates andupdates objects used in application 136-1. For example, object updater176 creates a new user-interface object or updates the position of auser-interface object. GUI updater 178 updates the GUI. For example, GUIupdater 178 prepares display information and sends it to graphics module132 for display on a touch-sensitive display.

In some embodiments, event handler(s) 190 includes or has access to dataupdater 176, object updater 177, and GUI updater 178. In someembodiments, data updater 176, object updater 177, and GUI updater 178are included in a single module of a respective application 136-1 orapplication view 191. In other embodiments, they are included in two ormore software modules.

It shall be understood that the foregoing discussion regarding eventhandling of user touches on touch-sensitive displays also applies toother forms of user inputs to operate multifunction devices 100 withinput-devices, not all of which are initiated on touch screens, e.g.,coordinating mouse movement and mouse button presses with or withoutsingle or multiple keyboard presses or holds, user movements taps,drags, scrolls, etc., on touch-pads, pen stylus inputs, movement of thedevice, oral instructions, detected eye movements, biometric inputs,and/or any combination thereof, which may be utilized as inputscorresponding to sub-events which define an event to be recognized.

FIG. 2 illustrates a portable multifunction device 100 having a touchscreen 112 in accordance with some embodiments. The touch screen maydisplay one or more graphics within user interface (UI) 200. In thisembodiment, as well as others described below, a user may select one ormore of the graphics by making a gesture on the graphics, for example,with one or more fingers 202 (not drawn to scale in the figure) or oneor more styluses 203 (not drawn to scale in the figure). In someembodiments, selection of one or more graphics occurs when the userbreaks contact with the one or more graphics. In some embodiments, thegesture may include one or more taps, one or more swipes (from left toright, right to left, upward and/or downward) and/or a rolling of afinger (from right to left, left to right, upward and/or downward) thathas made contact with device 100. In some embodiments, inadvertentcontact with a graphic may not select the graphic. For example, a swipegesture that sweeps over an application icon may not select thecorresponding application when the gesture corresponding to selection isa tap.

Device 100 may also include one or more physical buttons, such as “home”or menu button 204. As described previously, menu button 204 may be usedto navigate to any application 136 in a set of applications that may beexecuted on device 100. Alternatively, in some embodiments, the menubutton is implemented as a soft key in a GUI displayed on touch screen112.

In one embodiment, device 100 includes touch screen 112, menu button204, push button 206 for powering the device on/off and locking thedevice, volume adjustment button(s) 208, Subscriber Identity Module(SIM) card slot 210, head set jack 212, and docking/charging externalport 124. Push button 206 may be used to turn the power on/off on thedevice by depressing the button and holding the button in the depressedstate for a predefined time interval; to lock the device by depressingthe button and releasing the button before the predefined time intervalhas elapsed; and/or to unlock the device or initiate an unlock process.In an alternative embodiment, device 100 also may accept verbal inputfor activation or deactivation of some functions through microphone 113.

FIG. 3 is a block diagram of an exemplary multifunction device with adisplay and a touch-sensitive surface in accordance with someembodiments. Device 300 need not be portable. In some embodiments,device 300 is a laptop computer, a desktop computer, a tablet computer,a multimedia player device, a navigation device, an educational device(such as a child's learning toy), a gaming system, or a control device(e.g., a home or industrial controller). Device 300 typically includesone or more processing units (CPU's) 310, one or more network or othercommunications interfaces 360, memory 370, and one or more communicationbuses 320 for interconnecting these components. Communication buses 320may include circuitry (sometimes called a chipset) that interconnectsand controls communications between system components. Device 300includes input/output (I/O) interface 330 comprising display 340, whichis typically a touch screen display. I/O interface 330 also may includea keyboard and/or mouse (or other pointing device) 350 and touchpad 355.Memory 370 includes high-speed random access memory, such as DRAM, SRAM,DDR RAM or other random access solid state memory devices; and mayinclude non-volatile memory, such as one or more magnetic disk storagedevices, optical disk storage devices, flash memory devices, or othernon-volatile solid state storage devices. Memory 370 may optionallyinclude one or more storage devices remotely located from CPU(s) 310. Insome embodiments, memory 370 stores programs, modules, and datastructures analogous to the programs, modules, and data structuresstored in memory 102 of portable multifunction device 100 (FIG. 1), or asubset thereof. Furthermore, memory 370 may store additional programs,modules, and data structures not present in memory 102 of portablemultifunction device 100. For example, memory 370 of device 300 maystore drawing module 380, presentation module 382, word processingmodule 384, website creation module 386, disk authoring module 388,and/or spreadsheet module 390, while memory 102 of portablemultifunction device 100 (FIG. 1) may or may not store these modules.

Each of the above identified elements in FIG. 3 may be stored in one ormore of the previously mentioned memory devices. Each of the aboveidentified modules corresponds to a set of instructions for performing afunction described above. The above identified modules or programs(i.e., sets of instructions) need not be implemented as separatesoftware programs, procedures or modules, and thus various subsets ofthese modules may be combined or otherwise re-arranged in variousembodiments. In some embodiments, memory 370 may store a subset of themodules and data structures identified above. Furthermore, memory 370may store additional modules and data structures not described above.

Attention is now directed towards embodiments of user interfaces (“UI”)that may be implemented on portable multifunction device 100.

FIG. 4A illustrates an exemplary user interface for a menu ofapplications on portable multifunction device 100 in accordance withsome embodiments. Similar user interfaces may be implemented on device300. In some embodiments, user interface 400 includes the followingelements, or a subset or superset thereof:

-   -   Signal strength indicator(s) 402 for wireless communication(s),        such as cellular and Wi-Fi signals;    -   Time 404;    -   Bluetooth indicator 405;    -   Battery status indicator 406;    -   Tray 408 with icons for frequently used applications, such as:        -   Phone 138, which may include an indicator 414 of the number            of missed calls or voicemail messages;        -   E-mail client 140, which may include an indicator 410 of the            number of unread e-mails;        -   Browser 147; and        -   Video and music player 152, also referred to as iPod            (trademark of Apple Inc.) module 152; and    -   Icons for other applications, such as:        -   IM 141;        -   Image management 144;        -   Camera 143;        -   Weather 149-1;        -   Stocks 149-2;        -   Workout support 142;        -   Calendar 148;        -   Alarm clock 149-4;        -   Map 154;        -   Notes 153;        -   Settings 412, which provides access to settings for device            100 and its various applications 136;        -   Online video module 155, also referred to as YouTube            (trademark of Google Inc.) module 155;        -   Word processor 384;        -   Drawing 380;        -   Spreadsheet 390; and        -   Presentation 382.

FIG. 4B illustrates an exemplary user interface on a device (e.g.,device 300, FIG. 3) with a touch-sensitive surface 451 (e.g., a tabletor touchpad 355, FIG. 3) that is separate from the display 450 (e.g.,touch screen display 112). Although many of the examples which followwill be given with reference to inputs on touch screen display 112(where the touch sensitive surface and the display are combined), insome embodiments, the device detects inputs on a touch-sensitive surfacethat is separate from the display, as shown in FIG. 4B. In someembodiments the touch sensitive surface (e.g., 451 in FIG. 4B) has aprimary axis (e.g., 452 in FIG. 4B) that corresponds to a primary axis(e.g., 453 in FIG. 4B) on the display (e.g., 450). In accordance withthese embodiments, the device detects contacts (e.g., 460 and 462 inFIG. 4B) with the touch-sensitive surface 451 at locations thatcorrespond to respective locations on the display (e.g., in FIG. 4B, 460corresponds to 468 and 462 corresponds to 470). In this way, user inputs(e.g., contacts 460 and 462, and movements thereof) detected by thedevice on the touch-sensitive surface (e.g., 451 in FIG. 4B) are used bythe device to manipulate the user interface on the display (e.g., 450 inFIG. 4B) of the multifunction device when the touch-sensitive surface isseparate from the display. It should be understood that similar methodsmay be used for other user interfaces described herein.

Additionally, while the following examples are given primarily withreference to finger inputs (e.g., finger contacts, finger tap gestures,finger swipe gestures), it should be understood that, in someembodiments, one or more of the finger inputs are replaced with inputfrom another input device (e.g., a mouse based input or stylus input).For example, a swipe gesture may be replaced with a mouse click (e.g.,instead of a contact) followed by movement of the cursor along the pathof the swipe (e.g., instead of movement of the contact). As anotherexample, a tap gesture may be replaced with a mouse click while thecursor is located over the location of the tap gesture (e.g., instead ofdetection of the contact followed by ceasing to detect the contact).Similarly, when multiple user inputs are simultaneously detected, itshould be understood that multiple computer mice may be usedsimultaneously, or a mouse and finger contacts may be usedsimultaneously.

User Interfaces and Associated Processes

Attention is now directed towards embodiments of user interfaces (“UI”)and associated processes that may be implemented on an electronic devicewith a display and a touch-sensitive surface, such as device 300 orportable multifunction device 100.

FIG. 5A illustrates document 500 displayed on touch screen 112 of device100. Document 500 may be displayed in the user interface of anapplication (e.g., a word processing application, a presentationapplication, a spreadsheet application, etc.). The application userinterface in which document 500 is displayed may include toolbar 510 and“documents” button 512 for navigating to, if any, other documents. Insome embodiments, document 500 is displayed in a document viewing ornavigating mode.

Document 500 includes content, such as text 502, images, objects,tables, charts, and so on. Text 502 has a respective font size. In someembodiments, text 502 includes multiple portions with respective,different font sizes. Document 500 has a predefined page layout; thecontent in document 500 is laid out in a predefined way and the layoutis not affected by changes in the magnification level at which document500 is displayed on touch screen 112.

Document 500 is displayed at a first magnification level. For example,as shown in FIG. 5A, the first magnification level may be one thatcorresponds to fitting a whole page of document 500 on display 112.Document 500 may also be displayed at a larger or smaller magnification(e.g., in response to user input). Text 502, for the same font size, hasa text display size on screen that varies with the magnification level.Thus, text 502 has a first display size at the “fit whole page”magnification level. The text display size is the size of the text as itappears on the display of a device (e.g., touch screen 112 of device100), as opposed to the font size, which is the size of the text as itwould appear if printed out on physical media (e.g., paper).

In some embodiments, the magnification level is expressed as apercentage (e.g., 100%, 200%, 50%, etc.). The fit whole pagemagnification level described above corresponds to a magnification levelpercentage that achieves the fitting of a whole page onto display 112.

Gesture 504 is detected at a location on touch screen 112 correspondingto a location on document 500. In some embodiments, gesture 504 is asingle tap gesture. The location of gesture 504 indicates insertionpoint 506 in text 502. Insertion point 506 is proximate to text portion508 of text 502.

FIG. 5B shows, alternatively, gesture 514 detected at a location ontouch screen 112 corresponding to a location on document 500. In someembodiments, gesture 514 includes a tap and hold of a finger contact(i.e., finger makes contact on touch screen 112 and maintains contactwith touch screen 112, followed by a later liftoff of the contact). Inresponse to the detection of gesture 514, loupe 516 is displayed,showing a magnified view of text portion 508 and insertion point marker518 indicating an insertion point at a location in text 502 thatcorresponds to the location of gesture 514. While gesture 514 is active(i.e., contact with touch screen 112 is maintained), insertion pointmarker 518 may be moved across document 500 (e.g., by moving the fingeracross touch screen 112) and loupe 516 follows the movement of insertionpoint marker to show a magnified view of the text in proximity toinsertion point marker 518.

In response to the detection of gesture 504 or 514 and the completion ofthe respective gesture (e.g., when the finger contact of gesture 504 or514 is lifted up from touch screen 112), portion 520 of document 500 isdisplayed in document editing mode, as shown in FIG. 5C. While indocument editing mode, document 500 (including portion 520) is displayedat a second magnification level that is different from the firstmagnification level. Document portion 520 includes text portion 508. Insome embodiments, the second magnification level is a magnificationlevel at which text portion 508 is displayed on touch screen 112 at atext display size that is comfortable for reading. For example, if textportion 508 has a font size whose text display size at 100%magnification is not comfortable for reading on touch screen 112, textportion 508 may be displayed, when in document editing mode, at 200%magnification.

Insertion point marker 518 is displayed at the insertion point (e.g.,insertion point 506), and text portion 508 is proximate (e.g., adjacent)to insertion point marker 518. In some embodiments, insertion pointmarker 518 is a text cursor.

Document portion 520 is displayed such that the predefined layout ofdocument 500 is maintained; text 502, including text portion 508 is notre-flowed, re-wrapped, or the like. While in document editing mode,document 500 is scrollable (e.g., in response to swipe or flick gestureson touch screen 112).

While document portion 520 is displayed in document editing mode,keyboard 521 is also displayed, and “documents” button in toolbar 510 isreplaced by “done” button 522. A user may enter text into document 500by typing on keyboard 521, and confirm completion of editing of document500 by performing a gesture (e.g., a tap gesture) on “done” button 522.When “done” button 522 is activated by performance of a gesture on“done” button 522, the document editing mode ends and a document viewingmode resumes. For example, FIG. 5D shows gesture 524 detected on touchscreen 112 at a location corresponding on “done” button 522 (gesture 524may be said to be detected on “done” button 522).

In response to the detection of gesture 524, document 500, including therevisions entered and confirmed in document editing mode, is displayedat the fit whole page magnification level and in a document viewingmode, as shown in FIG. 5E. “Done” button 522 is replaced by “documents”button 512 in toolbar 510.

FIG. 5F shows document 500, with text 502, displayed in document viewingmode, along with toolbar 510 and “documents” button 512. Document 500 isdisplayed at fit whole page magnification; text 502 is displayed at atext display size corresponding to the fit whole page magnificationlevel.

Gesture 526 is detected at a location on touch screen 112 correspondingto a location on document 500. In some embodiments, gesture 526 is asingle tap gesture. The location of gesture 526 indicates insertionpoint 506 in text 502. Insertion point 506 is proximate to text portion508 of text 502.

In response to the detection of gesture 526, document portion 520 ofdocument 500 is displayed in document editing mode, as shown in FIG. 5G.Document portion 520 includes text portion 508. Document portion 520 isdisplayed at a magnification level such that text portion 508 isdisplayed at a default target text display size. Keyboard 521 is alsodisplayed, and “documents” button 512 is replaced by “done” button 522.Insertion point marker 518 is displayed to mark insertion point 506.

Gesture 534 is detected on touch screen 112. Gesture 534 is a gesture toadjust the magnification level at which document portion 520 isdisplayed. In some embodiments, gesture 534 is a depinch gesture, withcontacts 534-A and 534-B moving apart. In response to the detection ofgesture 534, document portion 520 is displayed, while remaining indocument editing mode, at a user-adjusted magnification level, as shownin FIG. 5H, which in this case is larger than the magnification level asshown in FIG. 5G. Accordingly, text portion 520 is displayed at auser-adjusted text display size, which in this case is larger than thedefault target text display size as shown in FIG. 5G. The user-adjustedtext display size is stored by device 100.

While text portion 508 is displayed at the user-adjusted text displaysize, gesture 536 is detected on “done” button 522, as shown in FIG. 5H.In response to the detection of gesture 536 on “done” button 522,document 500, including the revisions entered and confirmed in documentediting mode, is displayed at the fit whole page magnification level andin a document viewing mode, as shown in FIG. 5I. “Done” button 522 isreplaced by “documents” button 512 in toolbar 510.

In FIG. 5I, while document 500 is displayed in document viewing mode andat the fit whole page magnification level, gesture 536 is detected at alocation on touch screen 112 corresponding to a location on document500. In some embodiments, gesture 536 is a single tap gesture. Thelocation of gesture 536 indicates insertion point 538 in text 502.Insertion point 538 is proximate to text portion 540 of text 502.

In response to the detection of gesture 536, document portion 541 ofdocument 500, which includes text portion 540, is displayed in documentediting mode, as shown in FIG. 5J. Document portion 541 is displayed ata magnification level such that text portion 540 is displayed at theuser-adjusted text display size that was stored previously. Insertionpoint marker 518 is displayed to mark insertion point 538. Despitedocument portion 541 being a different portion of document 500 thandocument portion 520 (and text portion 540 being different from textportion 508), document portion 541 is displayed at a magnification levelsuch that text portion 540 is displayed at the user-adjusted textdisplay size.

FIG. 5K illustrates document 542, which includes text 543, beingdisplayed in document viewing mode on touch screen 112. Document 542includes document portions 544 and 546. The text (a portion of text 543)in document portion 544 and the text (another portion of text 543) indocument portion 546 have different font sizes. At a given magnificationlevel at which document 542 is displayed, the text display size of textin document portion 544 is larger than the text display size of text indocument portion 546.

Gesture 548 is detected at a location on touch screen 112 correspondingto a location on document 542. In some embodiments, gesture 548 is asingle tap gesture. The location of gesture 548 indicates insertionpoint 550 in text 543. Insertion point 550 is proximate to text portion552 of text 543. Text portion 552 is located in document portion 546.

In response to the detection of gesture 548, document portion 546 isdisplayed in document editing mode, as shown in FIG. 5L. Documentportion 546 is displayed at a certain magnification level. Accordingly,text portion 552 is displayed at a target text display size. Insertionpoint marker 518 is displayed to mark insertion point 550. Alsodisplayed is keyboard 521.

FIG. 5M shows document portion 544, which includes text portion 556 oftext 543, displayed on touch screen 112 in document editing mode.Document portion 544 may be reached from document portion 546 asdisplayed in FIG. 5L by scrolling document 542 (e.g., using swipegestures). Alternatively, document portion 544 may be reached fromdocument portion 546 as displayed in FIG. 5L by dragging insertionmarker 518 from document portion 546 to document portion 544 while indocument editing mode. Document portion 544 is displayed at the samemagnification level as document portion 546 is displayed in FIG. 5L.Text portion 556 is displayed at a larger text display size than textportion 552 is displayed in FIG. 5L. Text portion 556 has a larger fontsize than text portion 552 and thus has a larger text display size forthe same magnification level.

Gesture 554 is detected at a location on touch screen 112 correspondingto a location in document portion 544. In some embodiments, gesture 554is a single tap gesture. The location of gesture 554 indicates insertionpoint 555 in text 544. Insertion point 555 is proximate to text portion556 of text 544.

In response to the detection of gesture 554, as shown in FIG. 5N,document portion 544 is displayed at a lower magnification level thanthat shown in FIG. 5M. At this lower magnification level, text portion556 is displayed at the same text display size as text portion 552 isdisplayed in FIG. 5L; the magnification level of the document is changedsuch that text of different font sizes are displayed at the same textdisplay size as the user navigates from text of one font size to text ofa different font size.

FIG. 5O illustrates a portion of document 558 being displayed, indocument editing mode, at a certain magnification level. Text indocument 558 is displayed at a certain text display size. Text 562 isselected, as indicated by content selection range 560. Also displayedare selection options menu 565 for manipulating the selected text 562,and content selection handles 564-A and 564-B for adjusting contentselection range 560. Gesture 566 is detected on handle 564-B, dragginghandle 564-B in a direction that increases content selection range 560(e.g., downward in FIG. 5O).

In response to the detection of gesture 566, selection range 560 isenlarged, as shown in FIG. 5P. In some embodiments, loupe 567, whichshows a magnified view of text at the end of selection range 560 ashandle 564-B is moved, is displayed.

With the enlarged content selection range 560, selected text 562includes more text than is shown in FIG. 5O. Some of selected text 562is not displayed in FIG. 5O.

FIG. 5Q illustrates gesture 566 ceasing to be detected on touch screen112, while selection range 560 includes an end of a paragraph indocument 558. With the ceasing (lift off) of gesture 566, adjustment ofcontent selection range 560 is completed. In response to detectingcompletion of gesture 566, the magnification level at which document 558is displayed is changed, as shown in FIG. 5R. The new magnificationlevel is chosen so that the entirety of selected text 562 in contentselection range 560 is displayed on touch screen 112, rather thanshowing just some of selected text 562 because the magnification levelis too high. For example, document 558 may be displayed at a fit wholepage magnification level, as shown in FIG. 5R, or a fit page widthmagnification level.

Also shown in FIG. 5R, content selection range 560 is extended so thatselected text 562 includes an entire paragraph. Also displayed areparagraph selection options menu 569 for manipulating the selectedparagraph, and handles 564-A and 564-B for adjusting selection range560. As shown in FIG. 5R, handles 564-A and 564-B may be dragged toadjust selection range 560 to select more paragraphs or less paragraphs;a paragraph becomes the unit of text selection, as opposed to a smallerunit such as a character or a word.

In FIG. 5R, gesture 568 is detected on handle 564-B, which drags handle564-B downward, toward another paragraph of text in document 558. Inresponse to the detection of gesture 568, selection range 560 isextended by a paragraph, and selected text 562 includes anotherparagraph, as shown in FIG. 5S.

FIG. 5T shows document 570 displayed in document viewing mode on touchscreen 112. Document 570 includes objects 572 and 576. In someembodiments, an object is a shape, image, or other graphical object.Object 572 includes editable text 574, and object 576 does not includeeditable text.

When a gesture is detected on object 576 (e.g., gesture 580, which maybe a single tap gesture, on object 576, FIG. 5T), object 576 isdisplayed in document editing mode, at a magnification level thatachieves a particular object display size, as shown in FIG. 5U. Theobject display size is the size of the object as is appears on thedisplay. In some embodiments, that particular object display size is apredefined size with respect to touch screen 112. For example, thepredefined size may be a size that fits the entire object 576 onto touchscreen 112.

In contrast, when a gesture is detected on object 572 (e.g., gesture582, which may be a single tap gesture, FIG. 5T), object 572 isdisplayed in document editing mode, at a magnification level thatachieves a particular text display size for text 574, as shown in FIG.5V. This magnification level may be selected without reference to thesize of object 572. In some embodiments, that particular text displaysize is a default text display size or a previously-stored user-adjustedtext display size. Thus, when a gesture (e.g., a single tap gesture) isdetected on an object, if the object includes editable text, the newmagnification level accommodates the text, and if the object does notinclude editable text, the new magnification level accommodates theobject.

FIG. 5W illustrates document 584 being displayed, in document viewingmode, on touch screen 112. Document 584 is a spreadsheet document andincludes worksheet 591. Worksheet 591 includes one or more rows and oneor more columns. Document 582 is displayed at some magnification level.Also displayed are toolbar 586 and “spreadsheets” 588 for navigating toother spreadsheet documents, similar to “documents” button 512.

Gesture 590, for changing the magnification level of document 584, isdetected on touch screen 112. Gesture 590 includes contacts 590-A and590-B moving apart (i.e., gesture 590 is a depinch gesture). In responseto the detection of gesture 590, document 584 is displayed, still in thedocument viewing mode, at a user-adjusted magnification level, as shownin FIG. 5X.

Gesture 592 is detected on touch screen 112, in proximity of cell 594 inworksheet 591. In some embodiments, gesture 592 is a double tap gesture.Cell 594 becomes the insertion point. In response to the detection ofgesture 592, document 584 is displayed in a document editing mode, asshown in FIG. 5Y. Document 584 is displayed at a magnification leveldifferent from the user-adjusted magnification level. Cell 594, as thecell that is in proximity to gesture 592, becomes an editable cell andin focus (e.g., centered) and is highlighted by cell insertion pointmarker 593. Also displayed are keypad 595, edit field 596 showing thecurrent contents of cell 594, and edit complete button 597. A user mayenter edits into the contents of cell 594 using keypad 595, and theedits are reflected in edit field 596.

When editing is completed, a user activates edit complete button 597with a gesture. For example, gesture 598 is detected on edit completebutton 597, as shown in FIG. 5Z. In some embodiments, gesture 598 is asingle tap gesture. In response to the detection of gesture 598 on editcomplete button 597, document 584 is displayed at the user-adjustedmagnification level (the same level as in FIG. 5X), as shown in FIG.5AA. Edit field 596 ceases to be displayed, and in worksheet 591, cellselection marker 599 is displayed instead of cell insertion point marker593.

FIGS. 6A-6E are flow diagrams illustrating a method 600 of navigatingand editing an electronic document in accordance with some embodiments.The method 600 is performed at an electronic device (e.g., device 300,FIG. 3, or portable multifunction device 100, FIG. 1) with a displayand, typically, a touch-sensitive surface. In some embodiments, thedisplay is a touch screen display and the touch-sensitive surface is onthe display. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 600 may be combinedand/or the order of some operations may be changed.

As described below, the method 600 provides an intuitive way toautomatically zoom in on a user-specified insertion point when enteringa document editing mode and display the text at the insertion point at atarget text display size for easy viewing and editing. The methodreduces the cognitive burden on a user when navigating and editing anelectronic document, thereby creating a more efficient human-machineinterface. For battery-operated electronic devices, enabling a user tozoom in on content in a document faster and more efficiently conservespower and increases the time between battery charges.

The device displays at least a portion of an electronic document with apredefined page layout at a first magnification level on the display(602). In other words, the electronic document has a fixed page layoutand the text does not “reflow” as the magnification level of thedocument is changed. For example, in FIG. 5A, document 500 withpredefined page layout is displayed on touch screen 112. In FIG. 5A,document 500 is displayed at the fit whole page magnification level.

In some embodiments, the predefined page layout is a multi-page layoutand the document has content that is associated with a plurality of thepages (e.g., the electronic document is a word processor document,presentation document, pdf, etc.) (604). For example, document 500 mayhave one or more pages in addition to the one displayed in FIG. 5A.

In some embodiments, the predefined page layout is a table with aplurality of rows and a plurality of columns (e.g., the electronicdocument is a spreadsheet document, etc.) (606).

The device detects a first input indicating a first insertion point inthe document, where the first insertion point is proximate to (e.g.,adjacent to) a first portion of text in the document (608). The firstportion of text is typically a word or character adjacent to the firstinsertion point that has a predefined font size (e.g., a font sizespecified by the document). For example, in FIG. 5A gesture 504 isdetected. The location of gesture 504 indicates the insertion point 506.In some embodiments, the gesture is a finger gesture (e.g., a tapgesture) that has a contact area and the centroid of the contact area(or a point offset from the centroid of the contact area) is used tolocate the insertion point. Insertion point 506 is proximate to textportion 508.

It should be understood that, as used herein, the term “insertion point”refers to a location within the document that may also used as alocation for displaying an insertion point marker, such as a text cursoror highlighted word.

In response to detecting the first input (610), the device selects asecond magnification level different from the first magnification level,where the second magnification level is selected so as to display thefirst portion of text at a target text display size (612); and, whilemaintaining the predefined page layout of the document, the devicedisplays, at the second magnification level, a portion of the documentthat includes the first portion of text (614). For example, in FIGS. 5Athru 5C, in response to the detection of gesture 504 (FIG. 5A) orgesture 514 (FIG. 5B), document portion 520, which includes text portion508, is displayed at a larger magnification level, where the largermagnification level is one that is selected so that text portion 508 isdisplayed at a text display size that is comfortable for reading.

In other words, a magnification level is selected such that text isdisplayed at a target text display size that has been determined to be acomfortable reading size (e.g., 17 pt or some other predefined textdisplay size).

It should be understood that the target text display size may be eithera predefined target text display size or a user-adjusted target textdisplay size, as described below in greater detail with reference tomethod 700 and FIGS. 7A-7B.

It should be understood that, as used in the specification and claims,“text display size” is different from “font size.” In particular, asused herein, the “font size” of the text corresponds to a physicaldimension of the text as it would appear if the document were to beprinted out. In contrast, “text display size” corresponds to a dimensionof the text as it appears on the display of the electronic device and isnot necessarily the physical dimension of the text as it would appearwhen printed. Thus, the text display size of a word may be substantiallylarger or substantially smaller than the font size, depending on themagnification level at which the document is displayed. For example, aword with font size of 12 pt in a document could be displayed at a textdisplay size of 24 pt by displaying the document at a 200% magnificationlevel.

In some embodiments, displaying the portion of the document at thesecond magnification level includes displaying an animation of thedocument zooming from the first magnification level to the secondmagnification level (616). For example, there may be an animatedtransition from the magnification level shown in FIG. 5A to themagnification level as shown in FIG. 5C.

In some embodiments, in response to detecting the first input, thedevice performs an operation selected from the set consisting of:placing a text cursor at the first insertion point, selecting a cell ofa spreadsheet proximate to the first insertion point for editing, andhighlighting text proximate to the first insertion point (618). Forexample, in response to the detection of gesture 504 (FIG. 5A),insertion point marker 518 is inserted at insertion point 506 (FIG. 5C).

In some embodiments, in response to detecting the first input, thedevice scrolls the document so that the first insertion point is in acentral region of a displayed portion of the document (620). In someembodiments, the document is scrolled in one dimension (e.g.,horizontally or vertically). In some embodiments, the document isscrolled or translated in two dimensions (e.g., horizontally andvertically). For example, in FIG. 5C, insertion point marker 518(marking insertion point 506) is approximately centered in the displayedpart of document portion 520. Scrolling of document 500 may be needed,when transitioning from the magnification level shown in FIG. 5A to themagnification level shown in FIG. 5C, to achieve the centering.

In some embodiments, the electronic device includes a touch-sensitivesurface, and the first input is detected on the touch-sensitive surface(622). In some embodiments, the touch-sensitive surface is separate fromthe display. In some embodiments, the touch-sensitive surface and thedisplay are combined as a touchscreen display. For example, display 112on device 100 is a touch screen, and gesture 504 is detected on touchscreen 112.

In some embodiments, the first input is a single tap on thetouch-sensitive surface (624). For example, gesture 504 (FIG. 5A) may bea single tap gesture.

In some embodiments, the electronic device includes a touch-sensitivesurface, and the first input includes detecting a contact on thetouch-sensitive surface, detecting movement of the contact on thetouch-sensitive surface, and ceasing to detect the contact on thetouch-sensitive surface (626). For example, in FIG. 5B, gesture 514includes a contact on touch screen 112, any movement as needed to moveinsertion point marker 518 to the desired insertion point location, andliftoff of the contact from touch screen 112.

In some embodiments, while detecting movement of the contact on thetouch-sensitive surface, the device displays a magnified portion of thedocument corresponding to a current location of the contact on thetouch-sensitive surface, where the first insertion point is selectedbased on a position of the contact on the touch-sensitive surface whenthe device ceases to detect the contact on the touch-sensitive surface(628). In some embodiments, the magnified portion of the document hasthe appearance of a loupe and enables more accurate selection of thefirst insertion point. For example, in FIG. 5B, loupe 516 is displayed.Loupe 516 shows a magnified view of text 508 around insertion pointmarker 518, which is located at a location in document 500 correspondingto the location of the contact of gesture 514. The location of insertionpoint marker 518 is confirmed when the contact of gesture 514 lifts offfrom touch screen 112.

In some embodiments, in response to detecting the first input, thedevice enters a document-editing mode (630). For example, in FIG. 5C, inresponse to gesture 504 or 514, document portion 520 is displayed indocument editing mode. Keyboard 521 is displayed, and “documents” button512 is replaced by “done” button 522. Thus, a single input (e.g., a tapgesture or a tap and hold gesture) results in: entering edit mode,placing a text cursor, zooming to a different magnification level with acomfortable text display size, scrolling the document to place theinsertion point in a central region of the display, and displaying asoft keyboard.

In some embodiments, the electronic device enters the document-editingmode in response to detecting an end of the first input (e.g., when thedisplay is a touchscreen display, detecting the end of the input istypically detecting liftoff of a contact from the touchscreen display)(632). For example, document 500 is displayed in document editing mode(as in FIG. 5C) in response to the end of gesture 504 or 514.

In some embodiments, in response to detecting the first input, thedevice displays a soft keyboard on the display (634). For example, inresponse to gesture 504, along with the display of document 500 indocument editing mode, keyboard 521 is displayed (FIG. 5C).

In some embodiments, while in the document-editing mode, the deviceedits text of the document in response to user inputs (636). Forexample, in FIG. 5C-5D, text portion 508 may be edited in response touser typing on keyboard 521.

In some embodiments, the document is one of a plurality of documents(638). Prior to entering the document-editing mode, the device displaysa navigation affordance (e.g., documents button) for navigating betweendifferent documents in a set of documents (640). After entering thedocument-editing mode, the device replaces the navigation affordancewith an exit affordance (e.g., done button) for exiting thedocument-editing mode (642). For example, In FIG. 5A, “documents” button512 is displayed. In FIG. 5C, when document 500 is displayed in documentediting mode, “documents” button 512 is replaced by “done” button 522.

In some embodiments, the device receives a request to exit thedocument-editing mode (644); and, in response to receiving the requestto exit the document-editing mode (646), exits the document-editing mode(648) and displays the document at the first magnification level. (e.g.,returns to prior magnification level) (650). For example, in FIG. 5D,gesture 524 is detected on “done” button 522. In response to thedetection of gesture 524 on “done” button 522, document 500 is displayedin document viewing mode at fit whole page magnification (as shown inFIG. 5E), which is the same magnification level as in FIG. 5A.

In some embodiments, the device receives a request to exit thedocument-editing mode (652); and, in response to receiving the requestto exit the document-editing mode (654), exits the document-editing mode(656) and displays the document at a third magnification level thatcorresponds to a predefined document magnification level different fromthe first magnification level (e.g., a page width magnification level)(658). For example, in FIG. 5D, gesture 524 is detected on “done” button522. In response to the detection of gesture 524 on “done” button 522,document 500 may be displayed at a magnification level different thanthe magnification level shown in FIG. 5A (not shown).

In some embodiments, while in the document-editing mode, the devicescrolls the document in response to detecting inputs from a user (660);and, after exiting the document-editing mode, redisplays the document asit appeared when the first input was detected (662). In other words, thedocument is scrolled and zoomed so as to reposition the document at thesame magnification level and scroll position that it was displayed atprior to entering the edit mode. It should be understood that thedocument may be scrolled in one or two dimensions while in edit mode.For example, in FIG. 5C, document 500 is scrollable while in documentediting mode. After exiting document editing mode in response todetection of gesture 524, document 500 is displayed at the samemagnification level as when gesture 504 is detected in FIG. 5A.

In some embodiments, the target text display size at which the firstportion of text is displayed in response to detecting the first input isa default target text display size (664). While displaying the portionof the document that includes the first portion of text at the secondmagnification level, the device detects a second input corresponding toa request to display a portion of the document at a third magnificationlevel different from the second magnification level (666). In responseto detecting the second input (668), the device displays the portion ofthe document at the third magnification level (670) and stores auser-adjusted target text display size corresponding to a text displaysize of the first portion of text at the third magnification level(672), where the user-adjusted target text display size is differentfrom the default target text display size. After storing theuser-adjusted target text display size (674), the device detects a thirdinput indicating a second insertion point in the document, where thesecond insertion point is proximate to a second portion of text in thedocument (676); and in response to detecting the third input, displaysthe document at a respective magnification level such that the secondportion of text is displayed at the user-adjusted target text displaysize (678). For example, in FIGS. 5C and 5G, text portion 508 isdisplayed at a text display size that may be a default text display sizeas a result of document portion 520 being displayed at the secondmagnification level. In FIG. 5G, gesture 534 to adjust the magnificationlevel is detected. In response to the detection of gesture 534, documentportion 520 is displayed at a user-adjusted magnification level (asshown in FIG. 5H), and a text display size corresponding to theuser-adjusted magnification level is stored. Subsequently, gesture 536(FIG. 5I) indicating insertion point 538 is detected. In response to thedetection of gesture 536, document portion 541 is displayed at theuser-adjusted magnification level so that text portion 540 is displayedat the stored text display size (instead of the prior default textdisplay size in FIGS. 5A and 5G), as shown in FIG. 5J.

In some embodiments, the first portion of text has a first font size(680). While displaying the portion of the document that includes thefirst portion of text at the second magnification level, the devicedetects a second input indicating a second insertion point in thedocument (682), where the second insertion point is proximate to asecond portion of text in the document, and the second portion of texthas a second font size different from the first font size. In responseto detecting the second input (684), the device selects a thirdmagnification level different from the second magnification level (686),where the third magnification level is selected so as to display thesecond portion of text at the target text display size, and displays aportion of the document at the third magnification level (688). Forexample, text portion 508 has a font size, and is displayed at a textdisplay size (FIG. 5C). A gesture indicating another insertion pointproximate to a text portion with a different font size, analogous togesture 554 (FIG. 5M), may be detected. In response to the gesture, textin the text portion with the different font size is displayed at acertain magnification level so that that text is displayed at a sametext display size as text portion 508.

In some embodiments, after displaying the portion of the document thatincludes the first portion of text at the second magnification level(690), the device detects a content selection input (692). In responseto detecting the content selection input (694), the device identifies aselected portion of the document in accordance with the contentselection input (696), and in accordance with a determination that theselected portion of the document includes content that is outside of acurrently displayed portion of the document, the device adjusts displayof the document so that the entire selected portion of the document isdisplayed on the display (698). For example, a content selection inputsimilar to gesture 566 (FIG. 5O) on content selection handle 564-B maybe detected. In response to the detection of gesture 566, text indocument 500 may be selected. If the selected text includes portionoutside of a currently displayed portion, the magnification level ofdocument 500 may be adjusted to display the entire selected text.

It should be understood that the particular order in which theoperations in FIGS. 6A-6E have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 700, 800, 900, 1000, and 1100(e.g., FIGS. 7A-7B, 8A-8B, 9A-9B, 10, and 11A-11B, respectively) arealso applicable in an analogous manner to method 600 described abovewith respect to FIGS. 6A-6E. For example, the electronic document,insertion point and various magnification levels described above withreference to method 600 may have one or more of the characteristics ofthe electronic document, insertion point and various magnificationlevels described herein with reference to methods 700, 800, 900, 1000,and 1100. For brevity, these details are not repeated here.

FIGS. 7A-7B are flow diagrams illustrating a method 700 of navigatingand editing an electronic document in accordance with some embodiments.The method 700 is performed at an electronic device (e.g., device 300,FIG. 3, or portable multifunction device 100, FIG. 1) with a display anda, typically, touch-sensitive surface. In some embodiments, the displayis a touch screen display and the touch-sensitive surface is on thedisplay. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 700 may be combinedand/or the order of some operations may be changed.

As described below, the method 700 provides an intuitive way to modifythe target text display size from a default value to a user-adjustedvalue. The method reduces the cognitive burden on a user when navigatingand editing an electronic document, thereby creating a more efficienthuman-machine interface. For battery-operated electronic devices,enabling a user to zoom in on content in a document faster and moreefficiently conserves power and increases the time between batterycharges.

The device displays at least a portion of an electronic document at afirst magnification level on the display (702). For example, in FIG. 5F,document 500 is displayed at a fit whole page magnification level.

In some embodiments, the document has a predefined page layout and thepredefined page layout is maintained while displaying the document atdifferent magnification levels (704).

The device detects a first input indicating a first insertion point inthe document, wherein the first insertion point is proximate to a firstportion of text in the document (706). For example, in FIG. 5F, gesture526 is detected. The location of gesture 526 indicates insertion point506, which is proximate to text portion 508.

In response to detecting the first input (708), the device selects asecond magnification level different from the first magnification level,where the second magnification level is selected so as to display thefirst portion of text at a default target text display size (710), anddisplays a portion of the document at the second magnification level(714). For example, in FIG. 5G, in response to detecting gesture 526,document portion 520 is displayed at a different magnification levelfrom the fit whole page magnification level shown in FIG. 5F. Thedifferent magnification level is one that is selected by device 100 suchthat text portion 508 (adjacent to the insertion point) is displayed ata default target text display size.

In some embodiments, the default target text display size is apredefined value in the range 10 pt-24 pt (712).

The device detects a second input corresponding to a request to displaya portion of the document at a third magnification level different fromthe second magnification level (716). For example, in FIG. 5G, depinchgesture 534 to change the magnification level is detected.

In response to detecting the second input (718), the device displays theportion of the document at the third magnification level (720), andstores a user-adjusted target text display size corresponding to a textdisplay size of the first portion of text (e.g., the text adjacent tothe first insertion point) at the third magnification level, where theuser-adjusted target text display size is different from the defaulttarget text display size (722). For example, in response to thedetection of gesture 534, document portion 520 is displayed at yetanother magnification level (FIG. 5H). At this user-adjustedmagnification level, text portion 508 has a particular text displaysize. This text display size is stored as a user-adjusted target textdisplay size.

In some embodiments, the user-adjusted target text display size is onlystored when the text display size of the first portion of text meetspredefined text display size criteria (e.g., in accordance with adetermination that the text display size of the first portion of text iswithin a range of values that are “allowable” target text displaysizes). In other words, the input is ignored for the purposes of storinga user-adjusted target display size if the user zooms to a magnificationlevel at which text is either too large (e.g., greater than 72 pt) ortoo small (e.g., smaller than 10 pt) for a typical user to comfortablyread, because the user is likely zooming the document for some purposeother than editing text proximate to the insertion point.

After storing the user-adjusted target text display size (724), thedevice detects a third input indicating a second insertion point in thedocument, where the second insertion point is proximate to a secondportion of text in the document (726), and, in response to detecting thethird input, displays the document at a respective magnification levelsuch that the second portion of text is displayed at the user-adjustedtarget text display size (730). It should be understood that the firstportion of text may be the same as or different from the second portionof text. For example, in FIG. 5I, gesture 536 is detected. Gesture 536indicates insertion point 538, which is proximate to text portion 540.In response to the detecting gesture 536, document portion 541 isdisplayed at a magnification level such that text portion 540 isdisplayed at the stored user-adjusted target text display size (FIG.5J).

It should be understood that this process could be repeated any numberof times to set a new user-adjusted target text display size. However,typically, a user will determine a preferred target text display sizeand thus the user will not need to continually adjust the user-adjustedtarget text display size. Rather, the user will find that the targettext display size used for the whole document (or set of documents) isthe user's preferred target text display size, which will improve userefficiency and enhance user productivity.

In some embodiments, the user-adjusted target text display size isignored or discarded when the user-adjusted target text display size isnot within predefined text display size criteria. Optionally, thepredefined text display size criteria include an upper bound (e.g., atext display size between 48 pt-80 pt) and a lower bound of (e.g., atext display size between 10 pt-18 pt). Thus, in these embodiments, whenthe text display size of the first portion of text at the thirdmagnification level is outside of the predefined text display sizecriteria (e.g., above the upper bound or below the lower bound), thedevice continues to use the default target text display size or the lastuser-adjusted target text display size that was within the predefinedtext display size criteria. For example, if a user zooms out to displaya whole page (e.g., at 4 pt text display size) of a document in adocument-editing mode immediately prior to exiting the document-editingmode, the device either reverts to the default target text display size(e.g., 17 pt) or a prior user-adjusted target text display size (e.g.,15 pt). Thus, in this example, when the device re-entersdocument-editing mode, the device displays the document at a respectivemagnification level such that the respective portion of text iscomfortably readable (e.g., 17 pt or 15 pt rather than 4 pt).

In some embodiments, the first portion of text is different from thesecond portion of text (728). For example, text portion 508 (FIG. 5H) isdifferent from text portion 540 (FIG. 5J). In other words, theuser-adjusted target text display size may be used as a target textdisplay size for many different locations within the same document.

In some embodiments, the device uses the user-adjusted target textdisplay size as a target display size for a plurality of differentdocuments accessible by the device (736). In other words, theuser-adjusted target text display size may also be used as a target textdisplay size for many different documents on the device.

In some embodiments, the respective magnification level is the same asthe third magnification level if the second portion of text has a samefont size as the first portion of text (732). In other words, when thecursor moves between text with the same font size, the document is notzoomed to a different magnification level.

In some embodiments, the respective magnification level is differentfrom the third magnification level if the second portion of text has adifferent font size from a font size of the first portion of text (734).In other words, when the cursor moves between text with different fontsizes, the document is zoomed to a different magnification level.

In some embodiments, after storing the user-adjusted target text displaysize and prior to detecting a third input indicating the respectiveinsertion point in the document, the device exits a document-editingmode and displays the document at the first magnification level (738).For example, in FIG. 5H, after the user-adjusted target text displaysize is stored, gesture 536 is detected on “done” button 522. Inresponse to the detection of gesture 536, document 500 is displayedagain at the magnification level in FIG. 5F, as shown in FIG. 5I.

It should be understood that the particular order in which theoperations in FIGS. 7A-7B have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 800, 900, 1000, and 1100(e.g., FIGS. 6A-6E, 8A-8B, 9A-9B, 10, and 11A-11B, respectively) arealso applicable in an analogous manner to method 700 described abovewith respect to FIGS. 7A-7B. For example, the electronic document,insertion point and various magnification levels described above withreference to method 700 may have one or more of the characteristics ofthe electronic document, insertion point and various magnificationlevels described herein with reference to methods 600, 800, 900, 1000,and 1100. For brevity, these details are not repeated here.

FIGS. 8A-8B are flow diagrams illustrating a method 800 of navigatingand editing an electronic document in accordance with some embodiments.The method 800 is performed at an electronic device (e.g., device 300,FIG. 3, or portable multifunction device 100, FIG. 1) with a display,typically, and a touch-sensitive surface. In some embodiments, thedisplay is a touch screen display and the touch-sensitive surface is onthe display. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 800 may be combinedand/or the order of some operations may be changed.

As described below, the method 800 provides an intuitive way toautomatically adjust the display magnification to maintain a target textdisplay size as the insertion point is moved between areas in a documentwith different font sizes. The method reduces the cognitive burden on auser when navigating and editing an electronic document, therebycreating a more efficient human-machine interface. For battery-operatedelectronic devices, enabling a user to zoom in on content in a documentfaster and more efficiently conserves power and increases the timebetween battery charges.

The device displays at least a portion of an electronic document at afirst magnification level on the display (802). For example, in FIG. 5K,document 542 is displayed at some magnification level on touch screen112.

In some embodiments, the electronic document has a predefined pagelayout and the predefined page layout is maintained while displaying thedocument at different magnification levels (804). For example, document542 has a predefined layout that is maintained across differentmagnification levels.

The device detects a first input indicating a first insertion point inthe document (806), where the first insertion point is proximate to afirst portion of text in the document, the first portion of text havinga first font size. Alternatively, the first font size is a font size atthe insertion point (e.g., when there is an insertion point marker suchas a text cursor, the first font size is a font size that would be usedfor text entered at the text cursor). For example, in FIG. 5K, gesture548 is detected. The location of gesture 548 indicates insertion point550, which is in proximity to text portion 552.

In response to detecting the first input (808), the device selects asecond magnification level different from the first magnification level,where the second magnification level is selected so as to display thefirst portion of text at a target text display size (810); and displaysa portion of the document at the second magnification level (812). Forexample, in FIG. 5L, in response to the detection of gesture 548 (FIG.5K), document portion 546 is displayed at a magnification leveldifferent from the level at which document 542 is displayed in FIG. 5K.The magnification level at which document portion 546 is displayed inFIG. 5L is selected so that text portion 552 is displayed at a targettext display size.

It should be understood that the target text display size is apredefined target text display size (e.g., either a default target textdisplay size or a previously stored user-adjusted target text displaysize, as described in greater detail above with reference to method 700and FIGS. 7A-7B).

While displaying the portion of the document at the second magnificationlevel, the device detects a second input indicating a second insertionpoint in the document (814), where the second insertion point isproximate to a second portion of text in the document, the secondportion of text having a second font size different from the first fontsize. For example, in FIG. 5M, gesture 554 is detected. Gesture 554indicates insertion point 555, which is in proximity to text portion 556in document portion 544. Text in document portion 544, including textportion 556, have a different font size from text portion 552 (FIG. 5L).The second input may include, in addition to gesture 554, gestures toscroll from document portion 546, where text portion 552 is located, todocument portion 544.

In some embodiments, the first font size is larger than the second fontsize (816).

In some embodiments, the first font size is smaller than the second fontsize (818).

In response to detecting the second input (822), the device selects athird magnification level different from the second magnification level(824), where the third magnification level is selected so as to displaythe second portion of text at the target text display size; and displaysa portion of the document at the third magnification level (826). Forexample, in response to detection of gesture 554 (FIG. 5M), documentportion 544 is displayed at a different magnification level (FIG. 5N),such that text portion 556 is displayed at the same text display size astext portion 552 is displayed (the target text display size) in FIG. 5L.

In some embodiments, if the difference between first font size andsecond font size is below a predefined threshold (e.g., <3 ptdifference), in response to detecting the second input, the devicemaintains display of the document at the second magnification level(e.g., so as to prevent frequent small changes to the magnificationlevel of the document that could appear as unnecessary jitter to auser).

In some embodiments, the second input is a find command or a replacecommand (820). In other words, as the device switches from oneoccurrence of a term to a next occurrence of the term in the document,the device changes the magnification level at which the document isdisplayed in accordance with a font size of the next occurrence of theterm in the document.

In some embodiments, the electronic device includes a touch-sensitivesurface, and the first input and the second input are detected on thetouch-sensitive surface. In some embodiments, the touch-sensitivesurface is separate from the display. In some embodiments, thetouch-sensitive surface and the display are combined as a touchscreendisplay. For example, gestures 550 and 554 are detected on touch screen112.

It should be understood that the particular order in which theoperations in FIGS. 8A-8B have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 900, 1000, and 1100(e.g., FIGS. 6A-6E, 7A-7B 9A-9B, 10, and 11A-11B, respectively) are alsoapplicable in an analogous manner to method 800 described above withrespect to FIGS. 8A-8B. For example, the electronic document, insertionpoint and various magnification levels described above with reference tomethod 800 may have one or more of the characteristics of the electronicdocument, insertion point and various magnification levels describedherein with reference to methods 600, 700, 900, 1000, and 1100. Forbrevity, these details are not repeated here.

FIGS. 9A-9B are flow diagrams illustrating a method 900 of navigatingand editing an electronic document in accordance with some embodiments.The method 900 is performed at an electronic device (e.g., device 300,FIG. 3, or portable multifunction device 100, FIG. 1) with a displayand, typically, a touch-sensitive surface. In some embodiments, thedisplay is a touch screen display and the touch-sensitive surface is onthe display. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 900 may be combinedand/or the order of some operations may be changed.

As described below, the method 900 provides an intuitive way toautomatically zooming out at the completion of a text selection gestureto see the entire portion of text that has been selected. The methodreduces the cognitive burden on a user when navigating and editing anelectronic document, thereby creating a more efficient human-machineinterface. For battery-operated electronic devices, enabling a user tozoom in on content in a document faster and more efficiently conservespower and increases the time between battery charges.

The device displays a portion of an electronic document on the display(902). For example, in FIG. 5O, a portion of document 558 is displayed.

In some embodiments, the electronic document has a predefined pagelayout and the predefined page layout is maintained while adjustingdisplay of the document (904). For example, document 558 has apredefined layout.

The device detects a content selection input (906). For example, gesture566 dragging selection handle 564-B is detected (FIG. 5O).

In response to detecting the content selection input (908), the deviceidentifies a selected portion of the document in accordance with thecontent selection input (910), and in accordance with a determinationthat the selected portion of the document includes content that isoutside of a currently displayed portion of the document, the deviceadjusts display of the document so that the entire selected portion ofthe document is displayed on the display (912). For example, in responseto the detection of gesture 566 changing selection range 560 (FIGS.5O-5Q), the portion of document 558 that is selected by selection range560 is identified. If it is determined that the selected portion (e.g.,text 562, FIG. 5Q) includes content outside a currently displayedportion of document 558, document 558 is displayed at a differentmagnification level so that the entirety of selected text 562 isdisplayed, as shown in FIG. 5R.

It should be understood that, as used herein, “outside” means theportion of selected content that extends beyond the currently displayedportion (e.g., at least some of the selected content is not currentlydisplayed). In some embodiments, adjusting the display of the documentis performed automatically without user intervention in response todetecting the content selection input or detecting an end of the contentselection input.

In some embodiments, the electronic device includes a touch-sensitivesurface, and the content selection input includes detecting a contact onthe touch-sensitive surface, detecting movement of the contact on thetouch-sensitive surface, and ceasing to detect the contact on thetouch-sensitive surface (924). For example, display 112 of device 100 isa touch screen. Gesture 566 detected on touch screen 112 includes acontact, movement of the contact, and ceasing of the contact (FIG.5O-5Q).

In some embodiments, in response to detecting movement of the contact onthe touch-sensitive surface, the device scrolls the document inaccordance with the movement of the contact (926). In other words, whenthe display is a touchscreen display and the content selection inputincludes movement of a contact on the touchscreen display, when thecontact moves proximate to an edge of the display, the document isscrolled so as to enable the user to select text outside of the portionof the document that was initially displayed when the contact wasinitially detected on the touchscreen display.

In some embodiments, adjusting display of the document is performed inresponse to ceasing to detect the contact on the touch-sensitive surface(928). For example, the entire selection range 560 is shown (FIG. 5R)when the contact of gesture 566 ceases to be detected.

In some embodiments, the content includes text and/or images (914).

In some embodiments, adjusting display of the document includes changinga magnification level for displaying the document (916). For example,from FIGS. 5Q-5R, the magnification level of document 558 was changed,going from a non-page-fit magnification level to a fit whole pagemagnification level.

In some embodiments, adjusting display of the document includesscrolling the document (918). It should be understood that the documentcould be scrolled horizontally, vertically, or both horizontally andvertically.

In some embodiments, the document has a page width, the selected portionof the document includes at least a full line of the document that spansthe page width, and adjusting display of the document includesdisplaying the document at a page width magnification level (920). Inother words, the document is displayed at a magnification level wherethe width of the document on the display is approximately equal to thewidth of the display.

In some embodiments, prior to detecting the content selection input, thedevice displays the document at a first magnification level (930), andin response to detecting the content selection input, displays thedocument at a second magnification level different from the firstmagnification level (932).

In some embodiments, prior to detecting the content selection input, thedevice enters a document-editing mode (934), and while in thedocument-editing mode, displays a soft keyboard on the display (936).For example, in FIG. 5O, document 558 is displayed in document editingmode, and keyboard 521 is displayed.

In some embodiments, prior to detecting the content selection input, thedevice enters a document-editing mode (938), and remains in thedocument-editing mode after adjusting display of the document (940).

In some embodiments, prior to detecting the content selection input, thedevice receives a document-editing input (942), in response to thedocument-editing input, displays a soft keyboard on the display (944),and in response to detecting the content selection input (e.g., afterzooming out to a page width magnification level), ceases to display thesoft keyboard (946). For example, in FIG. 5O, keyboard 521 is displayedprior to detection of gesture 566, and in FIG. 5R keyboard 521 ceases tobe displayed in response to gesture 566.

In some embodiments, in response to detecting the content selectioninput, the device displays a selection indicator indicating the selectedportion of the document and a menu including options for manipulatingthe selected portion of the document (922). For example, selection range560 and selection options menu 569 (FIG. 5R) is displayed in response togesture 566.

In some embodiments, prior to detecting the content selection input, thedevice displays a preliminary selection indicator with a first pluralityof selection adjustment affordances; and after adjusting display of thedocument, the device displays an updated selection indicator with eitherone or more of the first plurality of selection adjustment affordancesin different locations in the document (e.g., advanced by one or morewords) or a second plurality of different selection adjustmentaffordances. In particular, when the preliminary selection indicatorindicates a selection within a paragraph, the first plurality ofselection adjustment affordances enable the preliminary selection to beexpanded and/or contracted by a first unit of content; and (e.g.,character by character, word by word, or line by line). However, whenthe updated selection indicator indicates a selection including at leastone paragraph break character (e.g., a selection that extends betweentwo adjacent paragraphs) the second plurality of selection adjustmentaffordances enable the selected portion of the document to be expandedand/or contracted by a second unit of content larger than the first unitof content (e.g., paragraph by paragraph, or section by section).

It should be understood that the particular order in which theoperations in FIGS. 9A-9B have been described is merely exemplary and isnot intended to indicate that the described order is the only order inwhich the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 800, 1000, and 1100(e.g., FIGS. 6A-6E, 7A-7B, 8A-8B, 10, and 11A-11B, respectively) arealso applicable in an analogous manner to method 900 described abovewith respect to FIGS. 9A-9B. For example, the electronic document,insertion point and various magnification levels described above withreference to method 900 may have one or more of the characteristics ofthe electronic document, insertion point and various magnificationlevels described herein with reference to methods 600, 700, 800, 1000,and 1100. For brevity, these details are not repeated here.

FIG. 10 is a flow diagram illustrating a method 1000 of navigating andediting an electronic document in accordance with some embodiments. Themethod 1000 is performed at an electronic device (e.g., device 300, FIG.3, or portable multifunction device 100, FIG. 1) with a display and,typically, a touch-sensitive surface. In some embodiments, the displayis a touch screen display and the touch-sensitive surface is on thedisplay. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 1000 may be combinedand/or the order of some operations may be changed.

As described below, the method 1000 provides an intuitive way toautomatically zoom to display an object at a size that accommodates theobject or, when the object contains editable text, automatically zoom todisplay the editable text within the object at a size that accommodatesthe text. The method reduces the cognitive burden on a user whennavigating and editing an electronic document, thereby creating a moreefficient human-machine interface. For battery-operated electronicdevices, enabling a user to zoom in on content in a document faster andmore efficiently conserves power and increases the time between batterycharges.

The device displays at least a portion of an electronic document at afirst magnification level on the display (1002). For example, in FIG.5T, document 570 is displayed at a certain magnification level.

The device detects an input indicating a point within an object in thedocument (1004). In some embodiments, the point is an insertion point(e.g., a point where the device will insert additional content such astext or other objects) in response to a user request to insert content.In some embodiments, the point is proximate to the object but within ahit region for the document that extends beyond the perimeter of theobject. For example, in FIG. 5T, the location of gesture 582 indicates apoint in object 572 in document 570, and the location of gesture 580indicates a point in object 576.

In response to detecting the input (1006), in accordance with adetermination that the object includes respective editable text (1008),the device selects a second magnification level different from the firstmagnification level (1010), where the second magnification level isselected so as to display the respective text at a target text displaysize, and displays the document at the second magnification level(1012). For example, in response to gesture 582 (FIG. 5T), object 572 isdisplayed at a magnification level such that text 574 in object 572 isdisplayed at a target text display size (FIG. 5V).

It should be understood that the target text display size may be eithera predefined target text display size or a user-adjusted target textdisplay size, as described above in greater detail with reference tomethod 700 and FIGS. 7A-7B.

In some embodiments, the second magnification level is selected withoutreference to (e.g., independently of) a size of the object (1014).

In response to detecting the input (1006), in accordance with adetermination that the object does not include editable text (1016), thedevice selects a third magnification level different from the secondmagnification level (1018), where the third magnification level isselected so as to display the object at a target object display size,and displays the document at the third magnification level (1020). Forexample, in response to gesture 580 (FIG. 5T), object 576 is displayedat a best fit magnification level (FIG. 5U).

In some embodiments, the object display size is a display size where theobject is displayed at a predefined size with reference to a displayedarea of the document on the display (1022). In some embodiments, theobject display size is a display size where the object is displayed sothat it is as large as possible, while still being fully displayed inthe display area (e.g., the object is displayed at a “best fit” size).In other embodiments, the object display size is a display size wherethe object is displayed so that the width of the object is substantiallyequal to the width of the display area (optionally, with a predefinedbuffer between a perimeter of the object and the edge of the display).In other embodiments, the object display size is a display size wherethe object is displayed so that the height of the object issubstantially equal to the height of the display area (optionally, witha predefined buffer between a perimeter of the object and the edge ofthe display).

It should be understood that the particular order in which theoperations in FIG. 10 have been described is merely exemplary and is notintended to indicate that the described order is the only order in whichthe operations could be performed. One of ordinary skill in the artwould recognize various ways to reorder the operations described herein.Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 800, 900, and 1100(e.g., FIGS. 6A-6E, 7A-7B, 8A-8B, 9A-9B, and 11A-11B, respectively) arealso applicable in an analogous manner to method 1000 described abovewith respect to FIG. 10. For example, the electronic document, insertionpoint and various magnification levels described above with reference tomethod 1000 may have one or more of the characteristics of theelectronic document, insertion point and various magnification levelsdescribed herein with reference to methods 600, 700, 800, 900, and 1100.For brevity, these details are not repeated here.

FIGS. 11A-11B are flow diagrams illustrating a method 1100 of navigatingand editing an electronic document in accordance with some embodiments.The method 1100 is performed at an electronic device (e.g., device 300,FIG. 3, or portable multifunction device 100, FIG. 1) with a displayand, typically, a touch-sensitive surface. In some embodiments, thedisplay is a touch screen display and the touch-sensitive surface is onthe display. In some embodiments, the display is separate from thetouch-sensitive surface. Some operations in method 1100 may be combinedand/or the order of some operations may be changed.

As described below, the method 1100 provides an intuitive way toautomatically switching back and forth from a user-specifiedmagnification level in a document-display mode to a predefineddocument-editing magnification level in an editing mode. The methodreduces the cognitive burden on a user when navigating and editing anelectronic document, thereby creating a more efficient human-machineinterface. For battery-operated electronic devices, enabling a user tozoom in on content in a document faster and more efficiently conservespower and increases the time between battery charges.

The device displays at least a portion of an electronic document at auser-specified magnification level (1102). In some embodiments, theuser-specified magnification level is a magnification level selected bythe user from a plurality of possible magnification levels. For example,the device receives requests to adjust (e.g., increase or decrease) themagnification level of the document (e.g., pinch or depinch gestures ona touchscreen display) prior to receiving a request to enter adocument-editing mode. For example, in FIG. 5X, document 584 isdisplayed at a user-specified magnification level in response to gesture590 (FIG. 5W).

While the document is in a document-display mode, the device receives arequest to enter a document-editing mode distinct from thedocument-display mode (1104). For example, gesture 592 (FIG. 5X) is arequest to enter a document editing mode.

In response to receiving the request to enter the document-editing mode(1106), the device enters the document-editing mode (1108), and displaysthe document at a predefined document-editing magnification leveldifferent from the user-specified magnification level (1110). Forexample, in FIG. 5Y, in response to gesture 592, document 584 isdisplayed in document editing mode and at a particular magnificationlevel for editing of a cell (e.g., cell 594) in worksheet 591.

In some embodiments, both entering the document-editing mode anddisplaying the document at the predefined document-editing magnificationlevel are performed in response to receiving the request automatically,without further user input. Enabling a user to both enter thedocument-editing mode and zoom the document to a magnification levelthat is comfortable for editing by performing a single gesture reducesthe number of steps that are performed by the user to begin editing thedocument, thereby increasing efficiency and ease of use of the device.In some embodiments, after displaying the document at thepredefined-document editing magnification level, the device receivesrequests to adjust (e.g., increase or decrease) the magnification levelof the document (e.g., pinch or depinch gestures on a touchscreendisplay) prior to receiving a request to exit the document-editing mode.In these circumstances the device would zoom from the currentuser-adjusted document-editing magnification level to the prioruser-specified magnification level upon exiting the document-editingmode.

While the document is in a document-editing mode, the device receives arequest to exit the document-editing mode (1112). For example, in FIG.5Z, gesture 598 on button 597 is a request to exit document editingmode.

In response to receiving the request to exit the document-editing mode(1114), the device exits the document-editing mode (1116) and displaysthe document at the user-specified magnification level (1118). Forexample, in FIG. 5AA, in response to gesture 598, document 584 isdisplayed at the same user-specified magnification level as in FIG. 5X.

In some embodiments, both the exiting the document-editing mode anddisplaying the document at the user-specified magnification level areperformed in response to receiving the request automatically, withoutfurther user input. Enabling a user to both exit the document-editingmode and zoom the document to a magnification level at which thedocument was previously displayed by performing a single gesture reducesthe number of steps that are performed by the user to return to adocument-display mode from the document-editing mode, thereby increasingefficiency and ease of use of the device.

In some embodiments, in response to receiving the request to enter thedocument-editing mode, the device determines whether thedocument-editing magnification level is within a predefined threshold(e.g., 5%, 10%, 20%, 30% or some other reasonable threshold that reducesjitter) of the user-specified magnification level. For example, if thedocument-editing magnification level is 100%, the user-specifiedmagnification level will be within the predefined threshold if it is amagnification level between 80% and 120%. In accordance with adetermination that the document-editing magnification level is notwithin the predefined threshold, the device enters the document-editingmode and displays the document at a predefined document-editingmagnification level different from the user-specified magnificationlevel. In contrast, in accordance with a determination that thedocument-editing magnification level is within the predefined threshold,the device enters the document-editing mode while maintaining display ofthe document at the user-specified magnification level. In other words,when the document-editing magnification level is within the predefinedthreshold, the device does not zoom to a document-editing magnificationlevel that is different from the user-specified magnification level.

In some embodiments, the electronic device includes a touch-sensitivesurface, and the request to enter the document-editing mode is detectedon the touch-sensitive surface (1120). In some embodiments, thetouch-sensitive surface is separate from the display. In someembodiments, the touch-sensitive surface and the display are combined asa touchscreen display. For example, gesture 592 is detected on touchscreen 112.

In some embodiments, the request to enter the document-editing mode is adouble tap gesture detected on the touch-sensitive surface (1122). Forexample, gesture 592 (FIG. 5X) is a double tap gesture.

In some embodiments, the request to enter the document-editing modeincludes an indication of an insertion point in the document and theinsertion point is proximate to a respective portion of the document(1124). In response to receiving the request to enter thedocument-editing mode, the device scrolls the document to place therespective portion of the document in a central region of a documentdisplay area. (e.g., a central region of the display or a central regionof a portion of the display that doesn't include a soft keyboard)(1126). For example, the location of gesture 592 (FIG. 5X) indicates aninsertion point in cell 594. In FIG. 5Y, cell 594 is approximatelycentered in the part of touch screen 112 where document 584 isdisplayed.

In some embodiments, the request to enter the document-editing modeincludes an indication of an insertion point in the document and theinsertion point is proximate to a respective portion of the document(1128). Entering the document-editing mode includes providing an inputinterface for editing the respective portion of the document proximateto the insertion point (e.g., a text cursor and keyboard or a form fieldfor entering a value) (1130). For example, in FIG. 5Y, while in documentediting mode, keypad 595 and edit field 596 are displayed.

In some embodiments, in response to receiving the request to enter thedocument-editing mode, the device inserts a text cursor at the insertionpoint (1132). In response to receiving the request to exit thedocument-editing mode, the device removes the text cursor (1134). Forexample, a text cursor may be inserted into cell 594 when enteringdocument-editing mode, and the text cursor is removed from cell 594 whenexiting document-editing mode.

It should be understood that the particular order in which theoperations in FIGS. 11A-11B have been described is merely exemplary andis not intended to indicate that the described order is the only orderin which the operations could be performed. One of ordinary skill in theart would recognize various ways to reorder the operations describedherein. Additionally, it should be noted that details of other processesdescribed herein with respect to methods 600, 700, 800, 900, and 1000(e.g., FIGS. 6A-6E, 7A-7B, 8A-8B, 9A-9B, and 10, respectively) are alsoapplicable in an analogous manner to method 1100 described above withrespect to FIGS. 11A-11B. For example, the electronic document,insertion point and various magnification levels described above withreference to method 1100 may have one or more of the characteristics ofthe electronic document, insertion point and various magnificationlevels described herein with reference to methods 600, 700, 800, 900,and 1000. For brevity, these details are not repeated here.

In accordance with some embodiments, FIG. 12 shows a functional blockdiagram of an electronic device 1200 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 12 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 12, an electronic device 1200 includes a display unit1202 configured to display at least a portion of an electronic documentwith a predefined page layout at a first magnification level; and aprocessing unit 1206 coupled to the display unit 1202. In someembodiments, the processing unit 1206 includes a detecting unit 1208, aselecting unit 1210, a display enabling unit 1212, a storing unit 1214,a scrolling unit 1216, an entering unit 1218, an editing unit 1220, areplacing unit 1222, a receiving unit 1224, an exiting unit 1226, aredisplay enabling unit 1228, a storing unit 1214, an identifying unit1230, and an adjusting unit 1232.

The processing unit 1206 is configured to: detect a first inputindicating a first insertion point in the document, wherein the firstinsertion point is proximate to a first portion of text in the document(e.g., with the detecting unit 1208); and in response to detecting thefirst input: select a second magnification level different from thefirst magnification level, wherein the second magnification level isselected so as to display the first portion of text at a target textdisplay size (e.g., with the selecting unit 1210); and while maintainingthe predefined page layout of the document, enable display of, at thesecond magnification level, a portion of the document that includes thefirst portion of text (e.g., with the display enabling unit 1212).

In some embodiments, the predefined page layout is a multi-page layoutand the document has content that is associated with a plurality of thepages.

In some embodiments, the predefined page layout is a table with aplurality of rows and a plurality of columns.

In some embodiments, the electronic device includes a touch-sensitivesurface unit, and the first input is detected on the touch-sensitivesurface unit.

In some embodiments, the first input is a single tap on thetouch-sensitive surface unit.

In some embodiments, the electronic device includes a touch-sensitivesurface unit, and the first input includes: detecting a contact on thetouch-sensitive surface unit; detecting movement of the contact on thetouch-sensitive surface unit; and ceasing to detect the contact on thetouch-sensitive surface unit.

In some embodiments, the processing unit 1206 is configured to: whiledetecting movement of the contact on the touch-sensitive surface unit,enable display of a magnified portion of the document corresponding to acurrent location of the contact on the touch-sensitive surface unit,wherein the first insertion point is selected based on a position of thecontact on the touch-sensitive surface unit when the device ceases todetect the contact on the touch-sensitive surface unit (e.g., with thedisplay enabling unit 1212).

In some embodiments, the processing unit 1206 is configured to: inresponse to detecting the first input, perform an operation selectedfrom the set consisting of: placing a text cursor at the first insertionpoint, selecting a cell of a spreadsheet proximate to the firstinsertion point for editing, and highlight text proximate to the firstinsertion point (e.g., with the performing unit 1214).

In some embodiments, displaying the portion of the document at thesecond magnification level includes displaying an animation of thedocument zooming from the first magnification level to the secondmagnification level.

In some embodiments, the processing unit 1206 is configured to: inresponse to detecting the first input, scroll the document so that thefirst insertion point is in a central region of a displayed portion ofthe document (e.g., with the scrolling unit 1216).

In some embodiments, the processing unit 1206 is configured to: inresponse to detecting the first input, enter a document-editing mode(e.g., with the entering unit 1218).

In some embodiments, the electronic device enters the document-editingmode in response to detecting an end of the first input.

In some embodiments, the processing unit 1206 is configured to: inresponse to detecting the first input, enable display of a soft keyboardon the display unit 1202 (e.g., with the display enabling unit 1212).

In some embodiments, the processing unit 1206 is configured to: while inthe document-editing mode, edit text of the document in response to userinputs (e.g., with the editing unit 1220).

In some embodiments, the document is one of a plurality of documents,and wherein the processing unit 1206 is configured to: prior to enteringthe document-editing mode, enable display of a navigation affordance fornavigating between different documents in a set of documents (e.g., withthe display enabling unit 1212); and after entering the document-editingmode, replace the navigation affordance with an exit affordance forexiting the document-editing mode (e.g., with replacing unit 1212).

In some embodiments, the processing unit 1206 is configured to: receive(e.g., with the receiving unit 1224) a request to exit thedocument-editing mode; and, in response to receiving the request to exitthe document-editing mode: exit the document-editing mode (e.g., withthe exiting unit 1226); and enable display of the document at the firstmagnification level (e.g., with the display enabling unit 1212).

In some embodiments, the processing unit 1206 is configured to: receivea request to exit the document-editing mode (e.g., with the receivingunit 1224); and, in response to receiving the request to exit thedocument-editing mode: exit the document-editing mode (e.g., with theexiting unit 1226); and enable display of the document at a thirdmagnification level that corresponds to a predefined documentmagnification level different from the first magnification level (e.g.,with the display enabling unit 1212).

In some embodiments, the processing unit 1206 is configured to: while inthe document-editing mode, scroll the document in response to detectinginputs from a user (e.g., with the scrolling unit 1206); and afterexiting the document-editing mode, enable redisplay of the document asit appeared when the first input was detected (e.g., with the redisplayenabling unit 1228).

In some embodiments, the target text display size at which the firstportion of text is displayed in response to detecting the first input isa default target text display size, and wherein the processing unit 1206is configured to: while displaying the portion of the document thatincludes the first portion of text at the second magnification level,detect a second input corresponding to a request to display a portion ofthe document at a third magnification level different from the secondmagnification level (e.g., with the detecting unit 1208); in response todetecting the second input: enable display of the portion of thedocument at the third magnification level (e.g., with the displayenabling unit 1212); and store a user-adjusted target text display sizecorresponding to a text display size of the first portion of text at thethird magnification level, wherein the user-adjusted target text displaysize is different from the default target text display size (e.g., withthe storing unit 1214); and after storing the user-adjusted target textdisplay size: detect a third input indicating a second insertion pointin the document, wherein the second insertion point is proximate to asecond portion of text in the document (e.g., with the detecting unit1208); and in response to detecting the third input, enable display ofthe document at a respective magnification level such that the secondportion of text is displayed at the user-adjusted target text displaysize (e.g., with the display enabling unit 1212).

In some embodiments, the first portion of text has a first font size,and wherein the processing unit 1206 is configured to: while displayingthe portion of the document that includes the first portion of text atthe second magnification level, detect a second input indicating asecond insertion point in the document, wherein the second insertionpoint is proximate to a second portion of text in the document, thesecond portion of text having a second font size different from thefirst font size (e.g., with the detecting unit 1208); and in response todetecting the second input: select a third magnification level differentfrom the second magnification level, wherein the third magnificationlevel is selected so as to display the second portion of text at thetarget text display size (e.g., with the selecting unit 1210); andenable display of a portion of the document at the third magnificationlevel (e.g., with the display enabling unit 1212).

In some embodiments, the processing unit 1206 is configured to, afterdisplaying the portion of the document that includes the first portionof text at the second magnification level: detect a content selectioninput (e.g., with the detecting unit 1208); and in response to detectingthe content selection input: identify a selected portion of the documentin accordance with the content selection input (e.g., with theidentifying unit 1230); and in accordance with a determination that theselected portion of the document includes content that is outside of acurrently displayed portion of the document, adjust display of thedocument so that the entire selected portion of the document isdisplayed on the display unit 1202 (e.g., with the adjusting unit 1232).

In accordance with some embodiments, FIG. 13 shows a functional blockdiagram of an electronic device 1300 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 13 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 13, an electronic device 1300 includes a display unit1302 configured to display at least a portion of an electronic documentat a first magnification level; and a processing unit 1306 coupled tothe display unit 1302. In some embodiments, the processing unit 1306includes a detecting unit 1308, a selecting unit 1310, a displayenabling unit 1312, a storing unit 1314, a using unit 1316, and anexiting unit 1318.

The processing unit 1306 is configured to: detect a first inputindicating a first insertion point in the document, wherein the firstinsertion point is proximate to a first portion of text in the document(e.g., with the detecting unit 1308); in response to detecting the firstinput: select a second magnification level different from the firstmagnification level, wherein the second magnification level is selectedso as to display the first portion of text at a default target textdisplay size (e.g., with the selecting unit 1310); and enable display ofa portion of the document at the second magnification level (e.g., withthe display enabling unit 1312); detect a second input corresponding toa request to display a portion of the document at a third magnificationlevel different from the second magnification level (e.g., with thedetecting unit 1308); in response to detecting the second input: enabledisplay of the portion of the document at the third magnification level(e.g., with the display enabling unit 1312); and store a user-adjustedtarget text display size corresponding to a text display size of thefirst portion of text at the third magnification level, wherein theuser-adjusted target text display size is different from the defaulttarget text display size (e.g., with the storing unit 1314); and afterstoring the user-adjusted target text display size: detect a third inputindicating a second insertion point in the document, wherein the secondinsertion point is proximate to a second portion of text in the document(e.g., with the detecting unit 1308); and in response to detecting thethird input, enable display of the document at a respectivemagnification level such that the second portion of text is displayed atthe user-adjusted target text display size (e.g., with the displayenabling unit 1312).

In some embodiments, the first portion of text is different from thesecond portion of text.

In some embodiments, the processing unit 1306 is configured to use theuser-adjusted target text display size as a target display size for aplurality of different documents accessible by the device (e.g., withthe using unit 1316).

In some embodiments, the default target text display size is apredefined value in the range 10 pt-24 pt.

In some embodiments, the respective magnification level is the same asthe third magnification level if the second portion of text has a samefont size as the first portion of text.

In some embodiments, the respective magnification level is differentfrom the third magnification level if the second portion of text has adifferent font size from a font size of the first portion of text.

In some embodiments, the processing unit 1306 is configured to: afterstoring the user-adjusted target text display size and prior todetecting a third input indicating the respective insertion point in thedocument, exit a document-editing mode and displaying the document atthe first magnification level (e.g., with the exiting unit 1318).

In some embodiments, the document has a predefined page layout and thepredefined page layout is maintained while displaying the document atdifferent magnification levels.

In accordance with some embodiments, FIG. 14 shows a functional blockdiagram of an electronic device 1400 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 14 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 14, an electronic device 1400 includes a display unit1402 configured to display at least a portion of an electronic documentat a first magnification level; and a processing unit 1406 coupled tothe display unit 1402. In some embodiments, the processing unit 1406includes a detecting unit 1408, a selecting unit 1410, and a displayenabling unit 1412.

The processing unit 1406 is configured to: detect a first inputindicating a first insertion point in the document, wherein the firstinsertion point is proximate to a first portion of text in the document,the first portion of text having a first font size (e.g., with thedetecting unit 1408); in response to detecting the first input: select asecond magnification level different from the first magnification level,wherein the second magnification level is selected so as to display thefirst portion of text at a target text display size; (e.g., with theselecting unit 1410) and enable display of a portion of the document atthe second magnification level (e.g., with the display enabling unit1412); while displaying the portion of the document at the secondmagnification level, detect a second input indicating a second insertionpoint in the document, wherein the second insertion point is proximateto a second portion of text in the document, the second portion of texthaving a second font size different from the first font size (e.g., withthe detecting unit 1408); and in response to detecting the second input:select a third magnification level different from the secondmagnification level, wherein the third magnification level is selectedso as to display the second portion of text at the target text displaysize (e.g., with the selecting unit 1410); and enable display of aportion of the document at the third magnification level (e.g., with thedisplay enabling unit 1412).

In some embodiments, the first font size is larger than the second fontsize.

In some embodiments, the first font size is smaller than the second fontsize.

In some embodiments, the electronic device includes a touch-sensitivesurface unit, and the first input and the second input are detected onthe touch-sensitive surface unit.

In some embodiments, the second input is a single tap on thetouch-sensitive surface unit.

In some embodiments, the second input is a find command or a replacecommand.

In some embodiments, the electronic document has a predefined pagelayout and the predefined page layout is maintained while displaying thedocument at different magnification levels.

In accordance with some embodiments, FIG. 15 shows a functional blockdiagram of an electronic device 1500 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 15 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 15, an electronic device 1500 includes a display unit1502 configured to display a portion of an electronic document; and aprocessing unit 1506 coupled to the display unit 1502. In someembodiments, the processing unit 1506 includes a detecting unit 1508, anidentifying unit 1510, an adjusting unit 1512, a scrolling unit 1514, adisplay enabling unit 1516, an entering unit 1518, a remaining unit1520, a receiving unit 1522, and a ceasing unit 1524.

The processing unit 1506 is configured to: detect a content selectioninput (e.g., with the detecting unit 1508); and in response to detectingthe content selection input: identify a selected portion of the documentin accordance with the content selection input (e.g., with theidentifying unit 1510); and in accordance with a determination that theselected portion of the document includes content that is outside of acurrently displayed portion of the document, adjust display of thedocument so that the entire selected portion of the document isdisplayed on the display unit 1502 (e.g., with the adjusting unit 1512).

In some embodiments, the electronic device includes a touch-sensitivesurface unit, and the content selection input includes: detecting acontact on the touch-sensitive surface unit; detecting movement of thecontact on the touch-sensitive surface unit; and ceasing to detect thecontact on the touch-sensitive surface unit.

In some embodiments, the processing unit 1506 is configured to: inresponse to detecting movement of the contact on the touch-sensitivesurface unit, scroll the document in accordance with the movement of thecontact (e.g., with the scrolling unit 1514).

In some embodiments, adjusting display of the document is performed inresponse to ceasing to detect the contact on the touch-sensitive surfaceunit.

In some embodiments, the content includes text and/or images.

In some embodiments, the electronic document has a predefined pagelayout and the predefined page layout is maintained while adjustingdisplay of the document.

In some embodiments, adjusting display of the document includes changinga magnification level for displaying the document.

In some embodiments, adjusting display of the document includesscrolling the document.

In some embodiments, the document has a page width; the selected portionof the document includes at least a full line of the document that spansthe page width; and adjusting display of the document includesdisplaying the document at a page width magnification level.

In some embodiments, the processing unit 1506 is configured to: prior todetecting the content selection input, enable display of the document ata first magnification level (e.g., with the display enabling unit 1516);and in response to detecting the content selection input, enable displayof the document at a second magnification level different from the firstmagnification level (e.g., with the display enabling unit 1516).

In some embodiments, the processing unit 1506 is configured to: prior todetecting the content selection input, enter a document-editing mode(e.g., with the entering unit 1518); and while in the document-editingmode, enable display of a soft keyboard on the display unit 1502 (e.g.,with the display enabling unit 1516).

In some embodiments, the processing unit 1506 is configured to: prior todetecting the content selection input, enter a document-editing mode(e.g., with the entering unit 1518); and remain in the document-editingmode after adjusting display of the document (e.g., with the remainingunit 1520).

In some embodiments, the processing unit 1506 is configured to: prior todetecting the content selection input, receive a document-editing input(e.g., with the receiving unit 1522); in response to thedocument-editing input, enable display of a soft keyboard on the displayunit 1502 (e.g., with the display enabling unit 1516); and in responseto detecting the content selection input, cease to display the softkeyboard (e.g., with the ceasing unit 1524).

In some embodiments, the processing unit 1506 is configured to: inresponse to detecting the content selection input, enable display of aselection indicator indicating the selected portion of the document anda menu including options for manipulating the selected portion of thedocument (e.g., with the display enabling unit 1516).

In accordance with some embodiments, FIG. 16 shows a functional blockdiagram of an electronic device 1600 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 16 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 16, an electronic device 1600 includes a display unit1602 configured to display at least a portion of an electronic documentat a first magnification level; and a processing unit 1606 coupled tothe display unit 1602. In some embodiments, the processing unit 1606includes a detecting unit 1608, a selecting unit 1610, and a displayenabling unit 1612.

The processing unit 1606 is configured to: detect an input indicating apoint within an object in the document (e.g., with the detecting unit1608); and in response to detecting the input: in accordance with adetermination that the object includes respective editable text: selecta second magnification level different from the first magnificationlevel, wherein the second magnification level is selected so as todisplay the respective text at a target text display size (e.g., withthe selecting unit 1610); and enable display of the document at thesecond magnification level (e.g., with the display enabling unit 1612);and in accordance with a determination that the object does not includeeditable text: select a third magnification level different from thesecond magnification level, wherein the third magnification level isselected so as to display the object at a target object display size(e.g., with the selecting unit 1610); and enable display of the documentat the third magnification level (e.g., with the display enabling unit1612).

In some embodiments, the second magnification level is selected withoutreference to a size of the object.

In some embodiments, the object display size is a display size where theobject is displayed at a predefined size with reference to a displayedarea of the document on the display unit 1602.

In accordance with some embodiments, FIG. 17 shows a functional blockdiagram of an electronic device 1700 configured in accordance with theprinciples of the invention as described above. The functional blocks ofthe device may be implemented by hardware, software, or a combination ofhardware and software to carry out the principles of the invention. Itis understood by persons of skill in the art that the functional blocksdescribed in FIG. 17 may be combined or separated into sub-blocks toimplement the principles of the invention as described above. Therefore,the description herein may support any possible combination orseparation or further definition of the functional blocks describedherein.

As shown in FIG. 17, an electronic device 1700 includes a display unit1702 configured to display at least a portion of an electronic documentat a user-specified magnification level; and a processing unit 1706coupled to the display unit 1702. In some embodiments, the processingunit 1706 includes a receiving unit 1708, an entering unit 1710, adisplay enabling unit 1712, an exiting unit 1714, a scrolling unit 1716,an inserting unit 1718, and a removing unit 1720.

The processing unit 1706 is configured to: while the document is in adocument-display mode, receive a request to enter a document-editingmode distinct from the document-display mode (e.g., with the receivingunit 1708); and in response to receiving the request to enter thedocument-editing mode: enter the document-editing mode (e.g., with theentering unit 1710); and enable display of the document at a predefineddocument-editing magnification level different from the user-specifiedmagnification level (e.g., with the display enabling unit 1712); whilethe document is in a document-editing mode, receive a request to exitthe document-editing mode; and in response to receiving the request toexit the document-editing mode: exit the document-editing mode (e.g.,with the exiting unit 1714); and enable display of the document at theuser-specified magnification level (e.g., with the display enabling unit1712).

In some embodiments, the electronic device includes a touch-sensitivesurface unit, and the request to enter the document-editing mode isdetected on the touch-sensitive surface unit.

In some embodiments, the request to enter the document-editing mode is adouble tap gesture detected on the touch-sensitive surface unit.

In some embodiments, the request to enter the document-editing modeincludes an indication of an insertion point in the document; theinsertion point is proximate to a respective portion of the document;and the processing unit 1706 is configured to, in response to receivingthe request to enter the document-editing mode, scroll the document toplace the respective portion of the document in a central region of adocument display area (e.g., with the scrolling unit 1716).

In some embodiments, the request to enter the document-editing modeincludes an indication of an insertion point in the document; theinsertion point is proximate to a respective portion of the document;and entering the document-editing mode includes providing an inputinterface for editing the respective portion of the document proximateto the insertion point.

In some embodiments, the processing unit 1706 is configured to: inresponse to receiving the request to enter the document-editing mode,insert a text cursor at the insertion point (e.g., with the insertingunit 1718); and in response to receiving the request to exit thedocument-editing mode, remove the text cursor (e.g., with the removingunit 1720).

The operations in the information processing methods described above maybe implemented by running one or more functional modules in informationprocessing apparatus such as general purpose processors or applicationspecific chips. These modules, combinations of these modules, and/ortheir combination with general hardware (e.g., as described above withrespect to FIGS. 1A and 3) are all included within the scope ofprotection of the invention.

The operations described above with reference to FIGS. 6A-6E, 7A-7B,8A-8B, 9A-9B, 10, and 11A-11B may be implemented by components depictedin FIGS. 1A-1B. For example, detection operation 608, selectionoperation 612, and displaying operation 614 in FIGS. 6A-6E may beimplemented by event sorter 170, event recognizer 180, and event handler190. Event monitor 171 in event sorter 170 detects a contact ontouch-sensitive display 112, and event dispatcher module 174 deliversthe event information to application 136-1. A respective eventrecognizer 180 of application 136-1 compares the event information torespective event definitions 186, and determines whether a first contactat a first location on the touch-sensitive surface corresponds to apredefined event or sub-event, such as selection of an object on a userinterface. When a respective predefined event or sub-event is detected,event recognizer 180 activates an event handler 190 associated with thedetection of the event or sub-event. Event handler 190 may utilize orcall data updater 176 or object updater 177 to update the applicationinternal state 192. In some embodiments, event handler 190 accesses arespective GUI updater 178 to update what is displayed by theapplication. Similarly, it would be clear to a person having ordinaryskill in the art how other processes can be implemented based on thecomponents depicted in FIGS. 1A-1B.

The foregoing description, for purpose of explanation, has beendescribed with reference to specific embodiments. However, theillustrative discussions above are not intended to be exhaustive or tolimit the invention to the precise forms disclosed. Many modificationsand variations are possible in view of the above teachings. Theembodiments were chosen and described in order to best explain theprinciples of the invention and its practical applications, to therebyenable others skilled in the art to best utilize the invention andvarious embodiments with various modifications as are suited to theparticular use contemplated.

1. An electronic device, comprising: a display; one or more processors;memory; and one or more programs, wherein the one or more programs arestored in the memory and configured to be executed by the one or moreprocessors, the one or more programs including instructions for:displaying at least a portion of an electronic document at a firstmagnification level on the display; detecting a first input indicating afirst insertion point in the document, wherein the first insertion pointis proximate to a first portion of text in the document, the firstportion of text having a first font size; in response to detecting thefirst input: selecting a second magnification level different from thefirst magnification level, wherein the second magnification level isselected so as to display the first portion of text at a target textdisplay size; and displaying a portion of the document at the secondmagnification level; while displaying the portion of the document at thesecond magnification level, detecting a second input indicating a secondinsertion point in the document, wherein the second insertion point isproximate to a second portion of text in the document, the secondportion of text having a second font size different from the first fontsize; and in response to detecting the second input: selecting a thirdmagnification level different from the second magnification level,wherein the third magnification level is selected so as to display thesecond portion of text at the target text display size; and displaying aportion of the document at the third magnification level.
 2. The deviceof claim 1, wherein first font size is larger than second font size. 3.The device of claim 1, wherein first font size is smaller than secondfont size.
 4. The device of claim 1, wherein the electronic deviceincludes a touch-sensitive surface, and the first input and the secondinput are detected on the touch-sensitive surface.
 5. The device ofclaim 4, wherein the second input is a single tap on the touch-sensitivesurface.
 6. The device of claim 1, wherein the second input is a findcommand or a replace command.
 7. The device of claim 1, wherein theelectronic document has a predefined page layout and the predefined pagelayout is maintained while displaying the document at differentmagnification levels.
 8. A method, comprising: at an electronic devicewith a display: displaying at least a portion of an electronic documentat a first magnification level on the display; detecting a first inputindicating a first insertion point in the document, wherein the firstinsertion point is proximate to a first portion of text in the document,the first portion of text having a first font size; in response todetecting the first input: selecting a second magnification leveldifferent from the first magnification level, wherein the secondmagnification level is selected so as to display the first portion oftext at a target text display size; and displaying a portion of thedocument at the second magnification level; while displaying the portionof the document at the second magnification level, detecting a secondinput indicating a second insertion point in the document, wherein thesecond insertion point is proximate to a second portion of text in thedocument, the second portion of text having a second font size differentfrom the first font size; and in response to detecting the second input:selecting a third magnification level different from the secondmagnification level, wherein the third magnification level is selectedso as to display the second portion of text at the target text displaysize; and displaying a portion of the document at the thirdmagnification level.
 9. A computer readable storage medium storing oneor more programs, the one or more programs comprising instructions,which when executed by an electronic device with a display, cause thedevice to: display at least a portion of an electronic document at afirst magnification level on the display; detect a first inputindicating a first insertion point in the document, wherein the firstinsertion point is proximate to a first portion of text in the document,the first portion of text having a first font size; in response todetecting the first input: select a second magnification level differentfrom the first magnification level, wherein the second magnificationlevel is selected so as to display the first portion of text at a targettext display size; and display a portion of the document at the secondmagnification level; while displaying the portion of the document at thesecond magnification level, detect a second input indicating a secondinsertion point in the document, wherein the second insertion point isproximate to a second portion of text in the document, the secondportion of text having a second font size different from the first fontsize; and in response to detecting the second input: select a thirdmagnification level different from the second magnification level,wherein the third magnification level is selected so as to display thesecond portion of text at the target text display size; and display aportion of the document at the third magnification level.
 10. Agraphical user interface on an electronic device with a display, amemory, and one or more processors to execute one or more programsstored in the memory, the graphical user interface comprising: at leasta portion of an electronic document at a first magnification level;wherein: a first input indicating a first insertion point in thedocument is detected, wherein the first insertion point is proximate toa first portion of text in the document, the first portion of texthaving a first font size; in response to detecting the first input: asecond magnification level different from the first magnification levelsselected, wherein the second magnification level is selected so as todisplay the first portion of text at a target text display size; and aportion of the document is displayed at the second magnification level;while displaying the portion of the document at the second magnificationlevel, a second input indicating a second insertion point in thedocument is detected, wherein the second insertion point is proximate toa second portion of text in the document, the second portion of texthaving a second font size different from the first font size; and inresponse to detecting the second input: a third magnification leveldifferent from the second magnification level is selected, wherein thethird magnification level is selected so as to display the secondportion of text at the target text display size; and a portion of thedocument is displayed at the third magnification level.